Remove a setting from the settings screen in iOS on app upgrade

149 Views Asked by At

My app initially used a feature that required microphone access. So the settings screen used to show the toggle switch for toggling that permission on or off. In the new version we no longer need that feature. So I removed the entry for microphone from the Root.plist in the Settings.bundle. This works for new installations. But for a user updating the app, the settings still shows the microphone permission. Is there any way to remove that entry ?

1

There are 1 best solutions below

2
On

I believe you need to delete the NSMicrophoneUsageDescription key from your info.plist file. I guess that as long as iOS sees that key, it will render the corresponding entry in your app's settings.

You can read more about what this key does here.