cellular-network

How do I know if cellular access for my iOS app is disabled?

不想你离开。 提交于 2019-11-27 01:04:19
I have an iOS app that makes some small network requests on app launch (resource updates, etc). If the user turns off cellular access for the app in iOS Settings, they get a prompt from iOS about network usage every time they launch. Is there a way to know programmatically that cellular data for this app has been disabled, so that I can disable the requests at startup? So I found this on the apple dev forums from an Apple engineer ( https://devforums.apple.com/message/1059332#1059332 ). Another developer wrote in to DTS and thus I had a chance to investigate this in depth. Alas, the news is

How do I know if cellular access for my iOS app is disabled?

微笑、不失礼 提交于 2019-11-26 09:33:58
问题 I have an iOS app that makes some small network requests on app launch (resource updates, etc). If the user turns off cellular access for the app in iOS Settings, they get a prompt from iOS about network usage every time they launch. Is there a way to know programmatically that cellular data for this app has been disabled, so that I can disable the requests at startup? 回答1: So I found this on the apple dev forums from an Apple engineer (https://devforums.apple.com/message/1059332#1059332).