Search code examples
iphoneiosobjective-cgeolocation

Programmatically Enable Location Service in iOS


Is that possible by any means for iOS devices (be it the JailBroken way) to toggle Location service in programmatic way? In my use case, user should be able to switch on Location service (to or or off) using the code, rather than manually going to settings & changing it.


Solution

  • You have to use private APIs. If you distribute, your app will be rejected by the app store.