I’ve got a fairly simple shortcut to choose a VPN to toggle from a menu. It is a button in cc. Photos attached. Each VPN is a separate menu item using toggle x VPN.
Expected behaviour:
VPN connects the first time when it is selected when not already connected. If already connected VPN disconnects.
Actual behaviour:
I have to run the shortcut twice every time bar one exception, if the VPN I’m connecting to was the previous one I’d connected to. I.e. I connect to ‘AirVPN - Europe’ by running the shortcut twice. Then I disconnect, this only takes one attempt. I can then run the shortcut and select ‘AirVPN - Europe’ and it will connect on first attempt.
I am running iOS 18.1.1 on an iPhone 12.
I can’t seem to find anyone else with this issue but also have no solution. I’ve tried adding a ‘wait’ for up to 5 seconds before connection, adding two ‘connect’ actions under each menu item and adding a ‘wait’ between those two connect actions. The shortcut demands that I run it twice.
I’m Going to take a sexy wild guess that the VPN toggle isn’t working because of “Connect On Demand” (Which is the Set On Demand VPN action.)
“Connect On Demand” forces the VPN to reconnect when disconnected etc. Toggle VPN I don’t think will work accurately in ur case, unless all your VPNs have “Connect On Demand” set to Off.
Or / Also U could use “Toggle VPN” and “Toggle On Demand” right after. So that the VPN ur currently Connected to is the only VPN with “Connect On Demand” turned On, all others Off.
I edited the shortcut now so each option has ‘Toggle VPN’ followed by ‘Toggle on Demand VPN’. I’m getting the notification ‘configuration is stale’ quite often which I’m struggling to understand.
Damn I haven’t gotten that stupid error in a minute…
So the “configuration is stale” would happen to me when the “Connect on Demand” action is set to On before the VPN can actually Connect if that makes sense. I would have to use the “Wait” action in-between the VPN and Set On Demand actions
To give the VPN a couple seconds to Connect.
Setting everything Off is always instant but turning On is…hope this helps