proyecto26 / react-native-inappbrowser

📱InAppBrowser for React Native (Android & iOS) 🤘
https://www.npmjs.com/package/react-native-inappbrowser-reborn
MIT License
1.31k stars 223 forks source link

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

Open AlexanderLanderos opened 2 years ago

AlexanderLanderos commented 2 years ago

Which platform(s) does your issue occur on?

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

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.

jdnichollsc commented 2 years ago

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

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

ajlee4 commented 1 year ago

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

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