问题描述
我在使用 Rest API 读取步数时遇到以下问题。
{ “错误”: { “代码”:403, “消息”:“数据源未找到或不可读:派生:com.google.step_count.delta:com.google.android.gms:estimated_steps”, “错误”:[ { “消息”:“数据源未找到或不可读:派生:com.google.step_count.delta:com.google.android.gms:estimated_steps”, "域": "全局",“原因”:“禁止” } ],“状态”:“PERMISSION_DENIED” } }
写在下面的授权码:
GIDSignIn.sharedInstance().scopes.append("https://www.googleapis.com/auth/fitness.activity.read")
GIDSignIn.sharedInstance().scopes.append("https://www.googleapis.com/auth/fitness.activity.write")
GIDSignIn.sharedInstance()?.signIn()
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)