Problem with openBrowserAsync and input type file

#1

I’m opening a browser with WebBrowser.openBrowserAsync to send the user to a web page where they can upload a file (due to limitations with WebViews and fileinputs on Android). The problem is once the user taps on the file select input and the menu to select Camera or Documents comes up, they will get redirected back to the app once they close the menu or select an item, as if they had closed the browser.

Here’s a GIF of what happens when I cancel by tapping outside of the menu. The same happens if I select a file:

CloudApp

That’s the same behavior I see if I close the browser tab before picking a file. This does not happen on iOS.

The file picker works as expected if I used Linking.openURL instead.

Any help would be appreciated. Thanks!

0 Likes

#2

I’ve managed to reproduce the issue and looking into a fix. Thanks for the detailed report!

0 Likes

#3

Hey Janic!

I see this has been released on v18.0.0! Nice! Thanks a lot.

0 Likes