Open JamesMcIntosh opened 5 years ago
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:
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. ^_^
When you request multiple permission statuses it looks like you can get different results than querying individually as
PermissionStatus.whenInUse
andPermissionStatus.always
are not handled in thegetPermissionsStatus(List<PermissionName> permissionNameList)
case statement. They default toPermissionStatus.notDecided
see: https://github.com/once10301/permission/blob/master/lib/permission.dart#L14