Reputation: 11
My Monotouch apps consume and use aspx web services to retrieve and update various server-side things the usual.NET way. Works great. However, doing that does not cause the VPN-On-Demand feature in iOS to trigger (auto-connect the first time), even though other apps on the same device like Safari does.
Does anybody know what I have to do (or if it's possible) to get that to happen? It's supposed to be automatic, but I believe it has something to do with which lower level iOS calls are being made.
Thanks
Upvotes: 1
Views: 508
Reputation: 1752
Providing you have the VPN on-demand setup correctly this should work as long as your HttpClient implementation is using NSUrlSession. You control that through Options >> iOS Build >> HttpClient implementation. This is only available from iOS 7 but I assume that shouldn't be a problem.
Upvotes: 0
Reputation: 32694
Use Runtime.StartWWAN (Uri uri) to force the app to connect/start the VPN
Upvotes: 1