GoogleAccountCredential name is null despite calling setSelectedAccountName (Android 6.0)

前端 未结 1 1961
北恋
北恋 2020-12-11 03:04

I\'ve created an endpoint using a secured backend and have been using it since March on an app I\'m building (source docs here). I recently installed the latest version to

相关标签:
1条回答
  • 2020-12-11 03:58

    Yes with Android 6.0 Marshmallow, you will now need to request permissions at run time https://developer.android.com/training/permissions/index.html

    In order to get those credentials you need the GET_ACCOUNTS permission in the CONTACTS group

    https://developer.android.com/guide/topics/security/permissions.html#normal-dangerous

    You will have to request it in your activity/fragment and handle any UX pertaining to your app.

    0 讨论(0)
提交回复
热议问题