Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

pgoelz

macrumors 6502
Original poster
Nov 20, 2017
265
105
Here's a tough one for any shortcut / automation gurus out there? This is more a general IOS question than 26 specific but I'm running 26 DB4 and wasn't sure where to post it...

I have a remote ham radio app that requires my VPN be connected in order to connect to my radio back home if I am on cell data instead of my local WiFi. On WiFi it does NOT need the VPN. I am trying to automate the process of opening the app with VPN if needed, as well as disconnecting the VPN when the app is no longer active (I keep forgetting to disconnect the VPN manually). And I'm running into a couple issues ;)

1. I have created a shortcut that senses if the network name = my home WiFi and if not, starts my VPN before it starts the radio app. This part works. I would prefer that it simply sense if WiFi is connected (to anything) but I'm not sure this is possible? I tried to sense whether the radio was available (it has an IP address on my LAN) and start the VPN if not, but the various "is reachable" functions do not seem to be able to sense the radio even on my local LAN.... possibly because the radio requires a login?

2. I created an automation that disconnects the VPN when the radio app is closed. This also works, BUT the automation is also invoked whenever the app is swiped away (like to open another app) even though the app is still running in the background, connected to the remote radio and audio is active. Any way around this?

Any bright ideas?

Paul
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.