且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在GoogleFit SDK中退出Google身份验证?

更新时间:2023-12-06 15:48:58

如果您查看 Google Fit

您会发现您只需要这样做:

You would find that you just need to do:

Fitness.getConfigClient(this, GoogleSignIn.getLastSignedInAccount(this)).disableFit()

基本上,与点击与GoogleFit断开连接(从链接中引用)的行为相同

That is basically, same behaviour as tapping Disconnect from GoogleFit (Quote from the link)