Skip to content

Use ApplicationDocumentDirectory for Android instead of ExternalStorageDirectory #92

@Harishwarrior

Description

@Harishwarrior

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;
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions