简体   繁体   中英

how to turn on vpn in ios app ? ( public api )

there are many kind of app in appstore that use vpn on demand. some application like hotspotshield when you open the app, it can turn vpn on even if vpn on demand is off. is there any public api for turning vpn on in app, like hotspotshield ?

even astrill is an app available for ios ( iPhone VPN connect app ).. it provides a toggle to switch vpn on and off from the app directly... so my guess is it used some third party api..

right now.. there is no public api available to toggle vpn from an app..

urlscheme could have been used to atleast open vpn setting from ur app .. but even that was deprecated.. so no chance for now

Now it's possible, but only with IPSec and IKEv2 protocols. See this great example https://github.com/lexrus/VPNOn

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM