How to show Location Services settings over (under) my app settings

771 views Asked by At

I customized my app settings (in iPhone settings page) by using root.plist. Now how can I add location services and notifications to my settings so user can see all my app preferences in single place?

I need something like this, so I can both see Location permission and my custom settings in same place :

enter image description here

2

There are 2 answers

0
PlusInfosys On

You can get current status of location configuration using authorizationStatus() and locationServicesEnabled() and according to status, you can display in your settings.

But there is NO way to modify Location configuration form your custom setting.

0
Mehul On

So, Location Settings will show up automatically in the Settings, when you list Location as a capability in your app. If you want more of your custom settings to show up inside Settings, and not inside your app, you can add keys in plist files for the Settings Bundle.

Refer: https://developer.apple.com/library/content/documentation/Cocoa/Conceptual/UserDefaults/Preferences/Preferences.html