nativescript-inappbrowser icon indicating copy to clipboard operation
nativescript-inappbrowser copied to clipboard

iOS: inAppBrowser does not open when triggered inside a Modal.

Open bylmzio opened this issue 4 years ago • 12 comments

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 --version to 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

bylmzio avatar Jul 28 '21 09:07 bylmzio

Hello mate, thanks for attaching a project, let me check 👍 PD: In the meantime, can you close the modal before to open the InAppBrowser? 🤔

jdnichollsc avatar Aug 03 '21 16:08 jdnichollsc

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...

bylmzio avatar Aug 03 '21 16:08 bylmzio

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?

jdnichollsc avatar Aug 04 '21 17:08 jdnichollsc

yes i tried with modalEnabled true only. i am using vscode.

bylmzio avatar Aug 05 '21 06:08 bylmzio

Please try with modalEnabled in false and let me know 🙂

jdnichollsc avatar Aug 05 '21 07:08 jdnichollsc

Please try with modalEnabled in false and let me know 🙂

Unfortunately it does not work with modalEnabled false.

bylmzio avatar Aug 05 '21 07:08 bylmzio

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

bylmzio avatar Aug 05 '21 07:08 bylmzio

Check the current configuration here: https://github.com/proyecto26/nativescript-inappbrowser/blob/develop/src/InAppBrowser.ios.ts#L126

jdnichollsc avatar Aug 05 '21 15:08 jdnichollsc

Do you have any idea what the problem is?

bylmzio avatar Aug 06 '21 18:08 bylmzio

No idea, let me know if you find any Apple documentation about this issue

jdnichollsc avatar Aug 06 '21 19:08 jdnichollsc

@jdnichollsc any improvement on this ?

bylmzio avatar Sep 07 '21 13:09 bylmzio

@bunower sorry, I'm not working with NativeScript right now, any pull request is welcome in the meantime! 👍

jdnichollsc avatar Sep 07 '21 23:09 jdnichollsc