iosvpn

mobileconfig installation without using Safari


Regarding iOS 8 profile install...

I'm trying to figure out how to design the simplest flow for VPN profile install while using Apple guidelines as entry point, but can't find any clue of clean VPN install implementation without using Safari.

My Q is: How to build the correct structure for a fast VPN profile install.

Pls find a cool reference: ZenMate iOS app. Can you assist?

Thanks :)


Solution

  • Currently, the only way to install mobileconfig files are using Safari or Mail app on iOS.

    To install the mobileconfig, you have some choices like:

    1. Put the mobileconfig files on the web and open it by Safari
    2. Send the mobileconfig by email and open it by Mail app
    3. Package (or download) the mobileconfig files to your bundle and host a HTTP server by your app, then open the localhost link by safari through openURL: function.

    Or, the iOS 8 way, using the new framework Network Extension to establish the VPN connection. And after trying the ZenMate iOS app, I believe it's what they use.

    You can refer following resource for installing mobileconfig file:

    Downloading "mobileconfig" file from an App

    Installing a configuration profile on iPhone - programmatically

    Or this link for using Network Extension:

    Connect to VPN programmatically in iOS 8