-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Warning: Attempt to present on whose view is not in the window hierarchy #58
Comments
any chance that you reproduce it? |
Can you replicate the issue using the sample application using your environment? |
Sure, i will prepare it and give a link of it |
Here's the sample cordova application that i created: https://www.dropbox.com/s/g4c72huf8bvecyw/sample.zip?dl=0 It's including Cordova InAppBrowser plugin which is accessible from https://github.com/apache/cordova-plugin-inappbrowser and your Instagram Plugin. You should run this on a real iphone device that have instagram application installed to reproduce the issue. Open the application and then click Open InAppBrowser button. It will open http://ajan.im/test.html url in an inappbrowser. When you click "Share on Instagram" link on that page, the error occurres. Here's the latest debug lines when i tried it: 2016-02-11 16:52:59.607 HelloCordova[543:661599] Apache Cordova native platform version 3.6.3 is starting. Started backup to iCloud! Please be careful. 2016-02-11 16:53:00.452 HelloCordova[543:661599] Resetting plugins due to page load. |
i just find a workaround for the problem:
ref.close(); This will close the inappbrowser and open the share menu. After click on instagram button i'm opening the inappbrowser again. But the new problem is, if i press the cancel button in share menu it will not trigger the callback function. And this cause the inappbrowser stay closed. in this code: `
this didn't trigger the callback function. How can i achieve this? |
any chance that you could test it? |
Hi
I'm trying to use Instagram plugin on IAB (i mean i'm trying to use it on a window that i opened with window.open)
When i try to share on Android it's working without any problem.
But when i try to make a share on iOS (on latest version) i got this error:
and nothing opened (share menu didn't open)
When i debug it, i saw that it's getting the error on this line:
What should i need to do for make it work?
Thanks
The text was updated successfully, but these errors were encountered: