Skip to content
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

Use ApplicationDocumentDirectory for Android instead of ExternalStorageDirectory #92

Open
Harishwarrior opened this issue May 20, 2024 · 0 comments

Comments

@Harishwarrior
Copy link

The package uses getExternalStorageDirectory which forces the user to add external storage permission in the android manifest. This causes issue with Android 13+ devices which has no permission to access external storage.

// Filing methods:------------------------------------------------------------
  Future<String?> get _localPath async {
    var directory;

    if (Platform.isIOS) {
      directory = await getApplicationDocumentsDirectory();
    } else {
      directory = await getExternalStorageDirectory();
    }

    return directory.path;
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant