iOS Photo Upload Error
Issue: When clicking "Take Photo" after uploading point on iOS app, the camera does not pop up. After clicking elsewhere on screen (Access dropdown) the camera then pops up.
Issue is documented in this video: https://drive.google.com/file/d/1ux1zh_7Z0txH44frkQQ7Kcyz0i5DkQO4/view
Model: iPhone 7 Version: iOS 12.4.1
The issue seems to stem from this error:
Warning: Attempt to present <CDVCameraPicker: 0x1600c0e00> on <MainViewController: 0x15fe12840> whose view is not in the window hierarchy!
Some searching found some threads on the subject:
- https://stackoverflow.com/questions/38920198/is-there-an-elegant-way-to-access-the-camera-from-the-inappbrowser-under-ios
- https://stackoverflow.com/questions/39165608/i-need-help-modifying-the-inappbrowser-in-native-code/39226377#39226377
- https://stackoverflow.com/questions/37218829/cordova-ios-camera-plugin-not-working-when-trying-to-open-from-inappbrowser
The only non-native solution suggested is to modify the input field to something like <input type="file" accept="image/*" capture="camera">.