将网络配置文件添加到 iOS 10 应用程序中

Add network profile into the iOS 10 application

我在 swift 上为 iOS 10.x 编写了一个网络应用程序。该应用程序需要特定的网络配置(与 Wi-Fi 相关),并且在我使用 Apple Configurator 2 手动创建网络配置文件然后将此配置文件推送到 iOS 10 设备的情况下它可以正常工作。

问题 1: 是否可以将网络配置文件包含到 iOS 10 应用程序中并随应用程序自动安装此配置文件?

问题 2:有没有什么方法可以在没有 Apple Configurator 的情况下将网络配置文件安装到 iOS 10 台设备?

https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/iPhoneOTAConfiguration/Introduction/Introduction.html

所述

There are four ways to deploy configuration profiles:

  • By physically connecting the device
  • In an email message
  • On a webpage
  • Using over-the air configuration as described in this document

也许您可以强制用户使用指向配置文件的 link 打开网页。确保如果用户单击 link,则 link 在 safari 中打开,而不是在您的应用程序中打开。