Am trying to update my app with the new Android M permissions which uses Google+ login, but when I do a checkSelfPermission(Manifest.permission.GET_ACCOUNTS)
the dialog that pops up says "Allow MyApp to access your contacts?" with the Deny and Allow buttons.
This seems kind of weird for the GET_ACCOUNTS permission. Shouldn't it say something related to access your accounts instead? Is this a bug? Or should I be doing something differently?
The GET_ACCOUNTS permission is part of the android.permission-group.CONTACTS group, along with the
This is why you get the message for CONTACTS.
So when you ask for one permission in a group, you will get all of them in that group. You can find more information about permission in Android M here
I would recommend moving away from Google+ login and using the new Google login. It requires no special permissions to access email and can be easily integrated.
https://developers.google.com/identity/sign-in/android/start
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With