Open mohamedaminehnioua opened 1 year ago
Does anyone have a solution to this problem?
Use permission handler as workaround. You most likely will need it anyway. https://pub.dev/packages/permission_handler
import 'package:permission_handler/permission_handler.dart';
await Permission.manageExternalStorage.isGranted; await Permission.manageExternalStorage.request();
Use permission handler as workaround. You most likely will need it anyway. https://pub.dev/packages/permission_handler
import 'package:permission_handler/permission_handler.dart';
await Permission.manageExternalStorage.isGranted; await Permission.manageExternalStorage.request();
It's true, but they should make it work like that the package will be independent and not require any other packages .
I/flutter (27441): FileSystemException: Directory listing failed, path = '/storage/emulated/0/' (OS Error: Permission denied, errno = 13)
E/flutter (27441): [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: MissingPluginException(No implementation found for method requestFilesAccessPermission on channel myapp/channel)
E/flutter (27441): #0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:175:7)
E/flutter (27441):
same issue i facing
set targetSdkVersion 29 if targetSdkVersion>=30 AndroidMainfest.xml add android:preserveLegacyExternalStorage="true"
Requesting file permission is not working on Android too.
AndroidManifest.xml
log:
Unhandled Exception: MissingPluginException(No implementation found for method requestFilesAccessPermission on channel myapp/channel).