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

Android: Unable to upload photo from phone to webview - on submit auto close and back to app

Open AlexanderLanderos opened this issue 2 years ago • 2 comments

Which platform(s) does your issue occur on?

  • Android versions: 9+
  • What type of device? Both Emulator and Samsung Galaxy s22 / Pixel 4a

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

  • "react-native": "0.64.2"
  • "react-native-inappbrowser-reborn": "^3.6.3"

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

We link out the our external website to upload photos from the Android device. We are able to open the media selector, and when selecting a photo or taking a photo the browser will close and you will be take back to the app.

AlexanderLanderos avatar May 23 '22 22:05 AlexanderLanderos

Thanks for taking the time to fill out this bug report!

Please refer to a repository with application where the problem is reproducible 👍

jdnichollsc avatar Jul 29 '22 17:07 jdnichollsc

In your android-specific options for InAppBrowser.open add showInRecents: true. This should fix it.

InAppBrowser.open(url, {
     // Android Properties
    showInRecents: true,
    ........
})

ajlee4 avatar Feb 07 '23 11:02 ajlee4