ios 从应用程序下载“mobileconfig”文件
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/16536494/
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
Downloading "mobileconfig" file from an App
提问by Nikita P
My org is creating an app, that will have certain wifi hotspots listed in a mobile config file, so that the user does not have to write the password for these wifi when he is in range.
I know this can be done using .mobileconfig
file. But I have serious doubts.
我的组织正在创建一个应用程序,它将在移动配置文件中列出某些 wifi 热点,以便用户在范围内时不必为这些 wifi 写入密码。我知道这可以使用.mobileconfig
文件来完成。但我有严重的怀疑。
Here are few questions regarding the app:
以下是有关该应用程序的几个问题:
Can
.mobileconfig
file be created programatically. I cannot find a link to how to cretae this programatically (not using iPCU).Will Apple allow an app that creates
.mobileconfig
file and asks the user to download it and install it, so as to change the wifi settings?Is making the user download this
.mobileconfig
file only possible via Safari or Mail? Is there any way that this file be opened directly from the app to the settings screen?
可以
.mobileconfig
以编程方式创建文件。我找不到如何以编程方式创建的链接(不使用 iPCU)。Apple 会允许应用程序创建
.mobileconfig
文件并要求用户下载并安装它,从而更改 wifi 设置吗?是否让用户
.mobileconfig
只能通过 Safari 或 Mail下载此文件?有没有办法直接从应用程序打开这个文件到设置屏幕?
Thanks in advance. :)
提前致谢。:)
回答by SG1
1) Yes it can. It can be created as an XML file. In fact, you can open and edit an unsigned .mobileconfig
file in a text editor and edit the fields. Keep in mind that if it's signed then any edits to the file will require you to re-sign it.
1) 是的,可以。它可以创建为 XML 文件。事实上,您可以.mobileconfig
在文本编辑器中打开和编辑未签名的文件并编辑字段。请记住,如果它已签名,则对该文件的任何编辑都将要求您重新签名。
2) Apple will allow an app that downloads and installs a .mobileconfig via Safari, I've seen one on the App Store that does this.
2) Apple 将允许通过 Safari 下载和安装 .mobileconfig 的应用程序,我在 App Store 上看到过这样做的。
3) Safari + Mail are the only ways to open them(on iOS).
3) Safari + Mail 是打开它们的唯一方式(在 iOS 上)。