是否可以将位置数据共享到由 Oauth2 连接的应用程序创建的 Google Fit 应用程序

问题描述

我在谷歌控制台中创建了应用程序。使用具有所需范围的 OAuth2.0 连接此应用:

范围=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Ffitness.activity.read%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Ffitness.activity.write%20https://www .googleapis.com/auth/fitness.location.read%20https://www.googleapis.com/auth/fitness.location.write%20https://www.googleapis.com/auth/fitness.heart_rate.write%20https ://www.googleapis.com/auth/fitness.heart_rate.read

使用我创建的 REST API dataSources 并使用此端点

补丁 https://fitness.googleapis.com/fitness/v1/users/{userId}/dataSources/{dataSourceId}/datasets/{datasetId}

使用位置数据成功创建 dataPoints

我在手机上检查了我的 Google Fit 应用程序,除了位置数据外,所有内容显示出来。我通过关联的应用创建的 Google 健身应用中的地图上没有位置点。

似乎禁止查看其他应用创建的位置数据,但是否可以共享此类数据,以便我可以在我的 Google 健身帐户中看到它?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)