Is it possible to reset the privacy settings in iOS?
Start the "Settings.app", go to General > Reset > Reset Location & Privacy.
This resets the privacy settings for all apps, but as far as I know, there is no way to reset it for a single app. Even removing the app and installing it again does not help.
Can the Location and Privacy settings be reset programmatically?
No, this can't be done through code (at least not through App Store approved public APIs anyway). Only the user can do this through the Settings app.
Is it possible to reset the Face ID permission alert for an app?
If you go into Settings > General > Reset > Reset Location & Privacy
this resets the Face ID permission alert.
Reset Permissions like Camera for iOS Apps?
Settings > General > Reset > Reset Location & Privacy.
This will reset all location, camera and microphone permissions.
It cannot be done on a per app basis.
Resetting iOS 7 microphone access permission
At least starting from iOs 7.1.1 there are switches to change access permission for every single app.
Look in: Settings->Privacy, select the kind of subsytem of your interest ( eg: microphone ), you will see your app in the list. Change the value of the selector according to your needs.
Have a nice day, Stefano
App is forced to restart by iOS with new privacy settings
This is not a problem of your application. Its just the way apple designed iOS. iOS will terminate the application when user change certain permissions of it.
Actually you will get a SIGKILL message but no Crash log when toggling settings. In this situation even applicationWillTerminate
not get called!
So the answer is you can't fix it.
Look at page 24 of this slide
Having app restart itself when it detects change to privacy settings
You misunderstand what is happening. Your app is not crashing (though it may appear so if you are running the app with the debugger).
When you switch to the Settings app (and your app is suspended in the background) and change the privacy settings, suspended apps are terminated. When you switch back to your app, it is simply started again. This is no different than your app being killed for any other reason.
It is up to you to code your app to handle this by restoring its previous state. The other app you talk about is simply returning the user to the previous state. Many apps do this. It has nothing to do with being killed due to privacy changes. The app would restore state when being killed for any reason.
Related Topics
Stop Uiwebview from "Bouncing" Vertically
Uicollectionview: Animate Cell Size Change on Selection
Xcodebuild Different Provisioning Profile for Target Dependency
How to Insert the Uitextview into Uialertview in iOS
React Native Responsive Font Size
How to Create a Scroll View with a Page Control Using Swift
How to Detect When Keyboard Is Shown and Hidden
Why Storyboard UI Elements Not Showing on Uiviewcontroller in Xcode 6
How to Check for a Null String in Objective-C
Getting User Location Every N Minutes After App Goes to Background
The Code Signature Version Is No Longer Supported
Ios: Copy a File in Documents Folder
Place Images Along a Bezier Path
How to Disable Back Swipe Gesture in Uinavigationcontroller on iOS 7
iOS Keeping Old Launch Screen and App Icon After Update
How to Change Inside Background Color of Uisearchbar Component on iOS