react-native-inappbrowser
react-native-inappbrowser copied to clipboard
Android: Unable to upload photo from phone to webview - on submit auto close and back to app
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.
Thanks for taking the time to fill out this bug report!
Please refer to a repository with application where the problem is reproducible 👍
In your android-specific options for InAppBrowser.open add showInRecents: true. This should fix it.
InAppBrowser.open(url, {
// Android Properties
showInRecents: true,
........
})