Android Google+ integration - repeated UserRecoverableAuthException

前端 未结 8 1727
独厮守ぢ
独厮守ぢ 2020-11-30 00:55

We have contacted Google about this and we are on chat

The issue seems to be fixed for devices except Samsung phones.

I\'m

8条回答
  •  独厮守ぢ
    2020-11-30 01:14

    Edit (6th Aug 2013): This seems to have been fixed for me without any changes to my code.

    The first potential issue I can see is that you are calling GoogleAuthUtil.getToken() after you get the onConnected() callback. This is a problem because requesting an authorization code for your server using GoogleAuthUtil.getToken() will always show a consent screen to your users. So you should only get an authorization code for new users and, to avoid showing new users two consent screens, you must fetch an authorization code and exchange it on your server before resolving any connection failures from PlusClient.

    Secondly, make sure you actually need both a PlusClient and an authorization code for your servers. You only need to get a PlusClient and an authorization code if you are intending to make calls to the Google APIs from both the Android client and your server. As explained in this answer.

    These issues would only result in two consent dialogs being displayed (which is clearly not an endless loop) - are you seeing more than two consent dialogs?

提交回复
热议问题