Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
permission_handler
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
songyanzhi
permission_handler
Commits
a115d6ae
Unverified
Commit
a115d6ae
authored
Sep 06, 2023
by
Jeroen Weener
Committed by
GitHub
Sep 06, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update PI docs (#1133)
parent
42f49529
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
7 deletions
+12
-7
permission_handler_platform_interface/CHANGELOG.md
+4
-0
permission_handler_platform_interface/lib/src/permissions.dart
+7
-6
permission_handler_platform_interface/pubspec.yaml
+1
-1
No files found.
permission_handler_platform_interface/CHANGELOG.md
View file @
a115d6ae
## 3.11.4
*
Clarifies the documentation on requesting background location permission
through
`Permission.locationAlways`
on Android 10+ (API 29+).
## 3.11.3
*
Updates the documentation for the
`Permission.bluetooth`
permission regarding the limitations of the permission on iOS.
...
...
permission_handler_platform_interface/lib/src/permissions.dart
View file @
a115d6ae
...
...
@@ -56,15 +56,16 @@ class Permission {
/// different:
///
/// **Android:**
/// - When running on Android Q and above: Background Location Permission
/// - When running on Android Q and above: Background Location Permission.
/// <br>**Please note**: To request this permission, the user needs to grant foreground
/// location permissions first. You can do this by using either
/// [Permission.location] or [Permission.locationWhenInUse]. Then, requesting
/// [Permission.locationAlways] will show an additional dialog or open the
/// location permission app settings, allowing the user to change the location
/// access to 'allow all the time'.
/// - When running on Android < Q: Fine and Coarse Location
///
/// **iOS:** CoreLocation - Always
/// - When requesting this permission, the user needs to grant permission for
/// the `locationWhenInUse` permission first, clicking on the
/// `Allow While Using App` option on the popup. After allowing the
/// permission, the user can request the `locationAlways` permission and can
/// click on the `Change To Always Allow` option.
static
const
locationAlways
=
PermissionWithService
.
_
(
4
);
/// Permission for accessing the device's location when the app is running in
...
...
permission_handler_platform_interface/pubspec.yaml
View file @
a115d6ae
...
...
@@ -3,7 +3,7 @@ description: A common platform interface for the permission_handler plugin.
homepage
:
https://github.com/baseflow/flutter-permission-handler/tree/master/permission_handler_platform_interface
# NOTE: We strongly prefer non-breaking changes, even at the expense of a
# less-clean API. See https://flutter.dev/go/platform-interface-breaking-changes
version
:
3.11.
3
version
:
3.11.
4
dependencies
:
flutter
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment