I have run into the issue described at https://issues.apache.org/jira/browse/CB-7679 .
I have a PhoneGap app that opens an InAppBrowser window that has a <input type="file" accept="image/*">
. As soon as I click either "Take Photo" or "Choose Existing" the window is closed and I get the following error message:
Warning: Attempt to present
<UIImagePickerController: 0x137001c00> on <CDVInAppBrowserNavigationController: 0x136d2ed20>
whose view is not in the window hierarchy!
The same code works on iOS 7. The versions I'm using are as follows:
- iOS: 8.1
- PhoneGap: 3.6.0
- InAppBrowser: 0.5.3
Is there something with the way they handle the view/controller/something in https://github.com/apache/cordova-plugin-inappbrowser/blob/master/src/ios/CDVInAppBrowser.m ? Looking at the plugin code, are there any workarounds I could try out?
I don't really know my way around Objective-C, but I've tried out some solutions suggested in similar non-PhoneGap related iOS issues without any luck.