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

Fix Storage #27

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ enum PermissionName {
}
```

####Android:
### Android

Only dangerous permissions require user agreement.

Expand Down Expand Up @@ -155,7 +155,7 @@ Make sure you add the needed permissions to your Android Manifest Permission.
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
```

#### iOS
### iOS

Add the needed permissions to your info.plist

Expand All @@ -178,7 +178,7 @@ Make sure you add the needed permissions to your Android Manifest Permission.
<string>Your prompt</string>
```

#### Methods
### Methods

```dart
import 'package:permission/permission.dart';
Expand All @@ -196,5 +196,3 @@ PermissionStatus permissionStatus = await Permission.requestSinglePermission(Per
# Both
Permission.openSettings;
```

####
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ private String getManifestPermission(String permission) {
result = Manifest.permission.READ_SMS;
break;
case "Storage":
result = Manifest.permission.READ_EXTERNAL_STORAGE;
result = Manifest.permission.WRITE_EXTERNAL_STORAGE;
break;
default:
result = "ERROR";
Expand Down