I need to know if this is a known bug, or a silly code error; can anyone please help?
I have a beta app that works on both iPhone and iPad. The app uses Phonegap 1.6. It uses a very basic code to open the camera roll and select an image:
function selectLibraryPhoto() {
navigator.camera.getPicture(onPhotoURISuccess, onFail, { quality: 50,
destinationType: destinationType.FILE_URI,
sourceType: Camera.PictureSourceType.SAVEDPHOTOALBUM });
}
All works well except when the user backs out of adding an image. When this event fires, the library images opens but when the user decides not to select an image, on the iPad an error occurs. On the iPhone you must select a cancel button to close the library window, on the iPad there is no button. You have to select the screen to close the library window.
In both cases the onFail event fires, and gives a simple alert "No image was select", but on the iPad this locks the application, the alert message button cannot be pushed, and the whole screen appears to greyed (behind modal).
This can't be right? What have I forgotten? Any help gratefully received.