iOS: inAppBrowser does not open when triggered inside a Modal.
Hi there, the inappbrowser works very-well in android. In iOS it works very well except in one situation, when you open the inappbrowser inside a modal. Then it das not appear.
Which platform(s) does your issue occur on?
- iOS Emulator and Device
Please, provide the following version numbers that your issue occurs with:
- CLI: (run
tns --versionto fetch it) - Cross-platform modules: 6.5.13
- Runtime(s): 6.5.3
Please, tell us how to recreate the issue in as much detail as possible.
open a link inside a modal.
Test Zip File
just run in ios test.zip
Hello mate, thanks for attaching a project, let me check 👍 PD: In the meantime, can you close the modal before to open the InAppBrowser? 🤔
Thank you for helping and answering. No at this point closing the modal is not an option. Maybe i can help to fix that problem? I never debugged somehting like that...
Hello mate, hope you're doing well
Do you need the modalEnabled option? Did you try without that option? What IDE are you using to debug your app?
yes i tried with modalEnabled true only. i am using vscode.
Please try with modalEnabled in false and let me know 🙂
Please try with modalEnabled in false and let me know 🙂
Unfortunately it does not work with modalEnabled false.
i couldnt analyzed it very well, but it seems the inappbrowser is opening under the modal? Because once i try to open it inside modal, it does not work in normal pages too. This ist the reason why i think maybe it opens under the modal
Check the current configuration here: https://github.com/proyecto26/nativescript-inappbrowser/blob/develop/src/InAppBrowser.ios.ts#L126
Do you have any idea what the problem is?
No idea, let me know if you find any Apple documentation about this issue
@jdnichollsc any improvement on this ?
@bunower sorry, I'm not working with NativeScript right now, any pull request is welcome in the meantime! 👍