0

How to know by code if the user has disabled cellular data in Settings ?

I have tried with Reachability but this tell me only if internet connection is reachable...

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129

1 Answers1

1

You cannot check this via code. Apple have not made this part of the public API. The best you can do is just check if there is connection as you're doing now.

Robert J. Clegg
  • 7,231
  • 9
  • 47
  • 99
  • Thanks for your answer. Apple has yet to make any progress to be more open. But I think it will come ! – iDevelopper Oct 13 '15 at 17:45
  • As of iOS9, you can check to see if cellular data has been disabled for your app. See https://stackoverflow.com/a/48160099/2941876 – Paul King Jan 10 '18 at 19:01