Comments (4)
i have the same problem
from flutter-permission-plugins.
Have the same issue
from flutter-permission-plugins.
@mockturtl this is expected behaviour and only occurs when your "Info.plist" doesn't include the correct permissions.
In this case you are actively requesting "locationAlways" permissions while the permissions in your "Info.plist" only contain the NSLocationWhenInUseUsageDescription
key.
You have two solutions here:
- Don't request "locationAlways" permissions (e.g. switch to "locationWhenInUse");
- Or add the missing permissions to your "Info.plist";
Hope this helped solve your issue.
from flutter-permission-plugins.
@mvanbeusekom Thank you for the reply and the workaround. I did discover both your suggestions through trial and error, and they solved it, but it was a little frustrating.
In this case you are actively requesting "locationAlways" permissions
That's confusing, to me. I call the API with the default value for the optional parameter, LocationPermissionLevel.location
. To me, that means I am actively not requesting a different value.
enum LocationPermissionLevel {
location, // is this Android only? What does it mean in Android 10?
locationWhenInUse,
locationAlways,
}
Please reconsider documenting this behavior, or the intended usage -- judging by the upvotes, it could be a little more clear.
@athornz
from flutter-permission-plugins.
Related Issues (20)
- Multiple bugs when we deny location permission and then ask for it again HOT 1
- iOS - Location permission dialog is not appearing and always giving denied response. HOT 9
- Is there any plans to support Web version? HOT 1
- Location permission level has no effect on checking or requesting permissions. HOT 3
- AndroidManifest need ACCESS_FINE_LOCATION permission? HOT 2
- Request ServiceStatus
- On iOS 13, location always is incorrectly returned as granted when you only have when in use HOT 2
- Method requestPermissions returns inconsistent results with "Allow Once" on iOS
- Android 11 support problem
- Android permission allowWhenAppInUse triggering inactive and resumed appLifeStateEvent
- [iOS] Requesting location always permissions does not return status when requesting more than once or selecting while using HOT 4
- Issue with the checkPermissionStatus on Android when the user selects "Allow only while using the app" HOT 2
- iOS permission key search is incomplete HOT 1
- [android] "Can request only one set of permissions at a time." HOT 5
- Null Safety Support HOT 1
- Will these packages eventually replace the permission_handler package? HOT 1
- Open turn on location service
- Show Rationale Dialog
- On Android version less than 6 (M) checkPermissionStatus returns Denied HOT 4
- LocationPermissionsPlugin.java uses or overrides a deprecated API
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-plugins.