permission
permission copied to clipboard
Inconsistent permission status behaviour
When you request multiple permission statuses it looks like you can get different results than querying individually as PermissionStatus.whenInUse
and PermissionStatus.always
are not handled in the
getPermissionsStatus(List<PermissionName> permissionNameList)
case statement. They default to PermissionStatus.notDecided
see: https://github.com/once10301/permission/blob/master/lib/permission.dart#L14
Describe your problem in detail?
Ah I see, getSinglePermissionStatus is for iOS and getPermissionStatus is for Android. This is VERY confusing and not obvious looking at the method signatures, I would recommend either:
- Implement both methods on each system.
- return a different enum if you actually wish to distinguish between the two types
We can request permissions together when the user opens the app for the first time on Android, but we can only request single permission on iOS.
That makes sense as to why you took that approach, if you pass through an array of permissions into the iOS code you should be able to iterate them and accumulate the results to return back in one call.
I am an Android developer, it is difficult for me. ^_^