-
Notifications
You must be signed in to change notification settings - Fork 937
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support file upload via WebView on Android #105
Conversation
Thanks, do you know if it is builtin with iOS ? |
it worked out of the box on iOS in my tests. What may should be mentioned in the read me, is that file upload on Android requires the read storage permission to work properly |
I am currently working on a fix as I figured out that if you switch between WebviewPlugin and native UI in the app the activity result listener that is needed for file upload callbacks can cause nullpointers. |
It was just a Nullpointer caused by interference with other tasks using onActivityResult - it should be fixed now (Y) |
Support file upload via WebView on Android
The Android WebView does not support file uploads via input type file out of the box. To support file uploads on various android versions the WebviewManager has been extended with the needed file chooser options and the AcitivityResultListener Plugin is used to pass the results of the onActivityResult call to the WebviewManager.