Android Google Fit onConnectionFailed() SIGN_IN_REQUIRED

后端 未结 2 603
迷失自我
迷失自我 2021-01-12 17:19

I can\'t seem to get round this issue. I just cannot sign in.

I\'m running the BasicSensorApi sample file and it just will not connect. It seems i\'m getting RESULT_

2条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-12 18:19

    When trying to resolve this sign-in loop while adding Google Plus to Google Play services mapping, I had to add an additional API and OAuth credential for my Android app on the Google APIs console.

    I already had a token credential tied to my app for the Maps APIs, but Google Plus login would return a CANCELED result code until I added the Google Plus APIs and added the required OAuth credentials for those APIs. As soon as it was in place for my APIs project, my activity result handler started seeing OK result codes.

提交回复
热议问题