react-native-inappbrowser icon indicating copy to clipboard operation
react-native-inappbrowser copied to clipboard

No feedback on dismiss when using ephemeralWebSession: true

Open erikmueller opened this issue 4 years ago • 1 comments

Which platform(s) does your issue occur on?

  • iOS
  • iOS 13.5
  • emulator

Please, provide the following version numbers that your issue occurs with:

  • RN 0.57.8
  • inAppBrowser 3.5.1

Please, tell us how to recreate the issue in as much detail as possible.

When launching the in-app browser via InAppBrowser.openAuth with { ephemeralWebSession: true } the resulting Safari modal is dismissible by pulling it down (note: not the case if ephemeralWebSession is set to false. Then it doesn't let you pull down until it's gone). After the modal has been pulled down, I didn't get any resolved/rejected value from the openAuth method (expected sth like { type: 'dismissed' } similar to when the modal is cancelled/closed).

I couldn't find a way to react to someone pulling down the modal (or bring the modal back up). When you open it again there's an error that an in-app browser was already presented.

Any hints or suggestions how to tackle this?

Thanks in advance.

erikmueller avatar Nov 27 '20 16:11 erikmueller

it looks like we need to check how to prevent close that modal with that gesture or checking native configuration to detect that close event, let me check but in the meantime, any pull request is welcome! 👍

jdnichollsc avatar Nov 28 '20 00:11 jdnichollsc