QuisApp / flutter_contacts

MIT License
83 stars 138 forks source link

Is it possible to test for permission before asking? #152

Open NiallBunting opened 5 months ago

NiallBunting commented 5 months ago

I'm trying to test if I can read the contacts before deciding to ask the user for the permission. This is because I want to process the contact list separately to showing the screen asking for permissions to access the contact list.

I'm wondering if there's any way to do FlutterContacts.hasPermission()?

I tried requesting contacts without doing a FlutterContacts.requestPermission() and it seems that it will prompt the user anyway.