Open nsanchezce opened 3 years ago
Same issue any help?!
same issue ???????
working in latest build(6.0.0-beta.31) after adding the following lines in AndroidManifest.xml (as mentioned in new docs):
<provider android:name="com.pichillilorenzo.flutter_inappwebview_android.InAppWebViewFileProvider" android:authorities="${applicationId}.flutter_inappwebview_android.fileprovider" android:exported="false" android:grantUriPermissions="true"> <meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/provider_paths" /> </provider>
[Documentation reference] (https://inappwebview.dev/docs/intro#configure-android)
Enviroment
Description
I'm trying to upload a file from the camera in my webview but It's not working in Android device. When I click on my Choose file button, it shows two options: camera and gallery. From Gallery everthing is ok, but choosing 'Camera', when it is openning , the device lose the conection. Although the camera is still open and i can take the photo, when i press the tic button it reload the app and don't load the picture. I am not getting any error.
Added this code in AndroidManifest file,
Added permissions in AndroidManifest file and asked for them before start the webview:
Flutter doctor:
Stacktrace/Logcat
Logs on debug console when click on camera
Any help is welcome! Thanks!