You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,8 +6,8 @@ Show permission disclosure page and allows required permissions and their associ
6
6
This package shows a prominent in-app disclosure page for getting permissions as required by [Google Play](https://support.google.com/googleplay/android-developer/answer/9799150?visit_id=638041800350153935-369621111&p=pd-m&rd=1#prominent_disclosure&zippy=%2Cstep-provide-prominent-in-app-disclosure%2Cstep-review-best-practices-for-accessing-location%2Cstep-consider-alternatives-to-accessing-location-in-the-background%2Cstep-make-access-to-location-in-the-background-clear-to-users%2Csee-an-example-of-prominent-in-app-disclosure).
7
7
Also support iOS to ensure a consistent experience.
8
8
9
-
In addition, permissions can be set as "required". If this is set, those required permissions will be required and if users denied it,
10
-
this package will show a custom dialog and redirect user to the appropriate settings page provided by the OS.
9
+
In addition, permissions and their associated services (e.g. GPS) can be set as "required". If this is set, those required permissions will
10
+
be required and if users denied it, this package will show a customizable dialog and redirect user to the appropriate settings page provided by the native OS.
11
11
12
12
## Setup
13
13
1. Add the following to `pubspec.yaml`
@@ -65,7 +65,7 @@ final perm = FlutterForcePermission(
65
65
2. Show the disclosure page as needed. This method will handle showing the disclosure page and requesting permissions.
66
66
This function takes a [NavigatorState](https://api.flutter.dev/flutter/widgets/NavigatorState-class.html) which can be retrieved through `Navigator.of(context)` call.
67
67
This is an async function. Wrap the function in an `async` block as needed.
68
-
Returns a map of permission and their requested status (granted/denied/etc). Refer to [permission_handler](https://pub.dev/packages/permission_handler) for the interface.
68
+
Returns a map of permission and their requested status (granted/denied/etc), service status and whether they are requested by this plugin.
69
69
```dart
70
70
final result = await perm.show(Navigator.of(context));
0 commit comments