Skip to content
This repository has been archived by the owner on Feb 25, 2021. It is now read-only.

Switch Camera permission in Settings makes crash the app #42

Closed
popei69 opened this issue Sep 3, 2015 · 3 comments
Closed

Switch Camera permission in Settings makes crash the app #42

popei69 opened this issue Sep 3, 2015 · 3 comments

Comments

@popei69
Copy link

popei69 commented Sep 3, 2015

When I try to use the example code with basic view controller and I switch Camera permission in Settings app, it makes crash the app.

@mikebuss
Copy link
Owner

mikebuss commented Sep 3, 2015

When you deny access to the Camera in the Settings app to an app, iOS will force-close the app. This is expected. If you relaunch the app, you should see the following alert if access is denied:

img_3091

@mikebuss mikebuss closed this as completed Sep 3, 2015
@popei69
Copy link
Author

popei69 commented Sep 3, 2015

Thanks for this quick answer. Yes I also noticed that it crashes when switching to accepting after denied it.
I was wondering if there is any chance to avoid crash / kill the app on that.

Thanks,

@mikebuss
Copy link
Owner

mikebuss commented Sep 3, 2015

Unfortunately I don't think there's a way around this, as it's done at the OS level. Sorry!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants