City-of-Bloomington / open311-ios

GeoReporter iOS source code. Native iOS smartphone client app for Open311 API civic issue reporting.
http://open311.org
Other
23 stars 22 forks source link

Crash when using a photo taken with the camera #211

Closed inghamn closed 10 years ago

inghamn commented 10 years ago

On an iPhone 5, the app crashes when you take a picture and try to use the photo.

inghamn commented 10 years ago

It is crashing because the user denied photo library access to the app.

We need to check for access to the library. In the event the user has denied access to the photo library...

inghamn commented 10 years ago

@rbdietz and I talked about it. We decided to do a check for Photos permission when when the user tries to Add Media to a report. Right now there is a dialog that asks whether to Take a New Photo or Choose from Gallery. If the app does not have permission to access the photos library, we should replace this dialog with an alert that tells the user how they can grant permission.

"Please go to Settings - Privacy - Photos to allow GeoReporter to save photos to your library."