ios 不使用 Safari 的 mobileconfig 安装
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/28743691/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
mobileconfig installation without using Safari
提问by Tzahi Moyal
Regarding iOS 8 profile install...
关于 iOS 8 配置文件安装...
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.
我试图弄清楚如何在使用 Apple 指南作为入口点的同时为 VPN 配置文件安装设计最简单的流程,但在不使用 Safari 的情况下找不到任何干净的 VPN 安装实现的线索。
My Q is: How to build the correct structure for a fast VPN profile install.
我的问题是:如何为快速 VPN 配置文件安装构建正确的结构。
Pls find a cool reference: ZenMate iOS app. Can you assist?
请找到一个很酷的参考:ZenMate iOS 应用程序。你能帮忙吗?
Thanks :)
谢谢 :)
回答by Charlie Hung
Currently, the only way to install mobileconfig files are using Safari or Mail app on iOS.
目前,安装 mobileconfig 文件的唯一方法是在 iOS 上使用 Safari 或 Mail 应用程序。
To install the mobileconfig, you have some choices like:
要安装 mobileconfig,您有一些选择,例如:
- Put the mobileconfig files on the web and open it by Safari
- Send the mobileconfig by email and open it by Mail app
- 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.
- 将 mobileconfig 文件放到网上,用 Safari 打开
- 通过电子邮件发送 mobileconfig 并通过邮件应用程序打开它
- 将 mobileconfig 文件打包(或下载)到您的包中,并通过您的应用程序托管 HTTP 服务器,然后通过 openURL: 函数通过 safari 打开 localhost 链接。
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.
或者,iOS 8 的方式,使用新的框架 Network Extension 建立 VPN 连接。在尝试了 ZenMate iOS 应用程序后,我相信这就是他们使用的。
You can refer following resource for installing mobileconfig file:
您可以参考以下资源来安装 mobileconfig 文件:
Downloading "mobileconfig" file from an App
Installing a configuration profile on iPhone - programmatically
Or this link for using Network Extension:
或者使用网络扩展的这个链接: