flutter-radar
flutter-radar copied to clipboard
Location permission not asked by SDK for background
First, thanks for the plugin,
Description of the problem:
- When we fetch the status permission using the getPermissionsStatus function, it always returns "DENIED"
Expected outcome: It should return "NOT_DETERMINED" at the first launch or before permission.
- When we ask permission using this function await Radar.requestPermissions(false);
As we pass false for foreground permission, it asks the permission But when we passed true for background permission, it didn't ask the permission for location.
@KennyHuRadar, Please look into this issue as it impacts our background functionality.
- We currently do not differentiate between "DENIED" and "NOT_DETERMINED" in the SDK.
- We can call
await Radar.requestPermissions(true);after we calledawait Radar.requestPermissions(false);to request for background location permissions after we requested for foreground location permissions.
Closing unless there are any other issues