简体   繁体   English

通过应用程序禁用iOS设备的数据连接

[英]Disable data connection of iOS device through app

如何使用目标C断开iOS设备的数据连接。如果有人对此知道任何私有api,请告诉我。

I don't think any public API exist to do such a thing. 我不认为有任何公共API可以做到这一点。 But you can try to override the current settings for cellular and wifi settings using a configuration profile. 但是您可以尝试使用配置配置文件来覆盖蜂窝和wifi设置的当前设置。 For example when you click on a button download and install the profile. 例如,当您单击按钮下载并安装配置文件时。

Have a look at the https://developer.apple.com/library/ios/featuredarticles/iphoneconfigurationprofileref/Introduction/Introduction.html#//apple_ref/doc/uid/TP40010206-CH1-SW13 看看https://developer.apple.com/library/ios/featuredarticles/iphoneconfigurationprofileref/Introduction/Introduction.html#//apple_ref/doc/uid/TP40010206-CH1-SW13

and the Cellular Payloads, Wifi Payloads, VPN Payloads and allowAppCellularDataModification keys. 以及蜂窝有效载荷,Wifi有效载荷,VPN有效载荷和allowAppCellularDataModification密钥。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 禁用应用安装,但允许在iOS设备上升级 - Disable app installation but allow upgrades on iOS device 想要禁用 iOS 设备中的相机功能:它是一个 IONIC 应用程序 - Want to disable Camera features in iOS device : It is an IONIC App iOS应用程序没有互联网连接时如何禁用segue? - How to disable segue when there is no internet connection for iOS app? 当应用程序在 iOS 中终止时如何禁用 vpn 连接? - How to disable vpn connection when app is terminated in iOS? iOS应用程序能否以编程方式知道设备是否与APNS处于活动连接? - Is it possible for an iOS app to programmatically know if the device has an active connection to APNS? Xcode-通过SFTP将应用程序上传到iOS设备 - Xcode- uploading app to iOS device through SFTP 通过 Diawi 将 iOS 应用程序安装到非测试设备 - Installing iOS app to non tester device through Diawi AWS Device Farm:通过Calabash发布带有参数的iOS app - AWS Device Farm: issue launching iOS app with argument through Calabash 强制iOS设备应用程序通过本地WIFI网络进行通信 - Force iOS device app to talk through the local WIFI network iOS App中通过短信绑定设备安全攻击 - Device Binding Security Attack through SMS in iOS App
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM