flutter-permission-handler icon indicating copy to clipboard operation
flutter-permission-handler copied to clipboard

Add ability to determine if permission listed in manifest.

Open bsutton opened this issue 5 years ago • 3 comments

I'm involved in the flutter_sound dart package which needs permissions for microphone and storage.

One issue we have is with users not setting up their manifest correctly.

It would be useful to be able to determine if a permission was listed in manifest (and the ios pod) so we can warn users.

Currently on android you display a message for storage: No permissions found in manifest for: 14

Exposing the logic behind this as an api call should do the trick. Can the same be done for ios?

bsutton avatar May 05 '20 00:05 bsutton

@bsutton hi i faced the same issue too. Any solutions to this? Thanks

winnie-chaintope avatar Oct 20 '20 04:10 winnie-chaintope

@bsutton hi i faced the same issue too. Any solutions to this? Thanks @winnie-chaintope sorry no. We moved the permission logic out of the plugin and made it the users responsibility.

bsutton avatar Oct 20 '20 04:10 bsutton

Dear @bsutton,

I don't think this is possible for iOS currently because the pod file cannot be checked on settings from the code... But if you have other information, please let us know. For Android we could expose it, it sounds like an enhancement.

Kind regards,

TimHoogstrate avatar Aug 22 '23 14:08 TimHoogstrate