Aniket Lokhande
Aniket Lokhande

Reputation: 99

How to Change camera permission from application in ios swift

I try to change camera permission.

But after changing permission it never go back to application.

iphone device force to restart application.

How I can do this.

Upvotes: 0

Views: 1252

Answers (1)

Bluewings
Bluewings

Reputation: 3488

Whenever the user changes the privacy settings like camera permission, the app will get killed by SIGKILL. That is the reason for your device force to restart your application.

Check this SO answer for more info.

There is no straightforward way to come back to our app from settings app.In case if you want to restore the app state, we need to save the user state before the app gets killed and when restarts check for any previous pending state and restore it.

Upvotes: 1

Related Questions