App crashes on enabling Camera Access from Settings iOS 8

前端 未结 2 1338
我在风中等你
我在风中等你 2020-12-04 18:57

I am developing an app for iPhone, it is using camera for scanning barcodes and taking pictures. When we don\'t have Camera access and the user enables Camera Access, the ap

2条回答
  •  时光说笑
    2020-12-04 19:36

    Your recommendations are correct. I present an alert view asking the user to go to the Settings app to change camera and contacts permission if they previously denied them. The problem for me is with your #2 recommendation. I am deep inside a sign up process and have collected sign up information such as name, email, date of birth. Then I have a "Request for Permissions" screen. When the app is relaunched after it's killed, I don't have this signup info anymore. I guess, I can save the signup info (to the phone) before presenting the alert view, then upon relaunch of the app, check if there is any previously stored sign up info. If so, go back to the screen which asked for permissions, then delete the stored sign up info.

提交回复
热议问题