Comments (2)
Hi @Pierre-Monier,
Unfortunately both Android and iOS don't make a specific distinction between the "when in use" and "just once" permission.
The iOS SDK provides the methods "requestWhenInUseAuthorization" en "requestAlwaysAuthorization" which returns one of the following states:
- notDetermined
- restricted
- denied
- authorizedAlways
- authorizedWhenInUse
When the user selects "just once", Apple will return the authorizedWhenInUse
status.
Android works in a similar way. The Android SDK allows us to request "ACCESS_COARSE_LOCATION" or "ACCESS_FINE_LOCATION" via the RequestPermission method. This method only returns "granted" or "denied". Which also means there is no way to distinguish between "When in use" or "Just once".
Since the native platform doesn't offer support to distinguish between the different states, we unfortunately also cannot provide this option.
from flutter-permission-handler.
Thanks for your answer
from flutter-permission-handler.
Related Issues (20)
- [Regression]: iOS now requires to obtain "When in use" location permission before requesting "Always" location permission
- [Question]: iOS `photosAddOnly` and `photo` always return `permanentlyDenied`, without dialog or app settings entry HOT 2
- [Question]: why set calendar Deprecated ? Forces me to use calendarFullAccess? HOT 1
- [Bug]:Permission.isDenied always return true. HOT 2
- [Question]: How to release or close camera after take photo in web flutter app ? HOT 1
- [Question]: add Android 14 permission READ_MEDIA_VISUAL_USER_SELECTED support HOT 2
- [Question]: Is POST_NOTIFICATIONS permission missing? HOT 5
- [Question]: How do we access the READ_PHONE_NUMBERS permission HOT 1
- [Bug]: Bluetooth permission on iOS permanently denied HOT 8
- [Question]: FormatException: Missing extension byte (at offset 1) HOT 4
- Remove references to deprecated v1 Android embedding HOT 1
- Kotlin version of package HOT 2
- [Feature request]: Implement full screen intent android permission request HOT 7
- [Bug]: Requesting permission for appTrackingTransparency returns before user selection HOT 2
- [Question]: how can I request only a single permission ACCESS_COARSE_LOCATION (Android) HOT 1
- How to check limited access in Android & IOS. HOT 1
- SMS Permission on iOS: it's unclear if it's necessary to edit Info.plist and eventually how HOT 1
- [Regression]: PlatformException(PermissionHandler.PermissionManager, A requestfor permissions is already runningplease wait for it to finish beforedoing another request (note thatyou can request multiplepermissions at the same time)..null, null) HOT 4
- Not showing permission prompt for microphone and video on web? HOT 2
- [Question]: Upgrading from version 8.1.16 to 11.0.1 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter-permission-handler.