4

In privacy settings, when I change the permissions related to iOS app (Camera or Microphone) and again back to the app then app restarting from initial state and I lost my existing state of work in the app.

Is there any way to save the last state or avoid killing/restart ?

Lucky
  • 233
  • 1
  • 2
  • 12

1 Answers1

3

Look at the applicationWillTerminate(_:) method. this will be called before Your app is killed and there is no way to stop it from restart when privacy permission is changed

Also take a look at this answer

Sahil
  • 9,403
  • 4
  • 39
  • 82