Gopik
Gopik

Reputation: 255

UIImagePickerController not ask permission?

i have used UIImagePickerController in our app, But permission alert is not appear on first time itself. Any solution? Thanks in Advance.

Upvotes: 0

Views: 1088

Answers (2)

Madhu
Madhu

Reputation: 437

If your code is correct, then this solution will work for you.

1.Uninstall the app from the device.
2.Restart the device.
3.After restarting change the date to next day in date and time settings.
4.Then again restart the device.
5.Now run the app.You can see the permission alert.

This solution worked for me.If its helpful for you, let me know.

Upvotes: 1

ghostatron
ghostatron

Reputation: 2650

iOS caches the user response to permission requests, and that cache will persist even if you delete and reinstall the app. If you're in the simulator, the lazy solution would be to reset the simulator. On the device, if your permission alert isn't showing, then I would suspect your phone already has a privacy entry in settings for your app.

Upvotes: 1

Related Questions