【问题标题】:Data not syncning if Google Fit not installed on device如果设备上未安装 Google Fit,数据不会同步
【发布时间】:2018-12-21 15:08:10
【问题描述】:

我正在使用 Google Fit History API。它工作正常,我正在插入步骤。

// Create a data set
int stepCountDelta = 950;
DataSet dataSet = DataSet.create(dataSource);

// For each data point, specify a start time, end time, and the data value -- in this case,
// the number of new steps.
DataPoint dataPoint =
        dataSet.createDataPoint().setTimeInterval(startTime, endTime, TimeUnit.MILLISECONDS);
dataPoint.getValue(Field.FIELD_STEPS).setInt(stepCountDelta);
dataSet.add(dataPoint);
// [END build_insert_data_request]

现在响应返回成功,但是当我检查 Google Fit dashboard 时,它没有接收到数据,并且数据没有从我的应用程序与 Google Fit 同步。如何获取同步数据?目前我们的设备上没有安装 Google Fit 默认应用。

【问题讨论】:

    标签: android google-fit


    【解决方案1】:

    您必须安装 Google Fit 默认应用才能同步和接收数据。

    您可以按照以下步骤操作:

    1. Google Play Store 下载 Google 健身 到手表。
    2. 在您的手表上打开 Google 健身
    3. 完成初始设置。

    现在您的手表可用于收集您的健身数据,并且会自动同步到 Google Fit。您可能会在仪表板中看到您的记录。

    您可以查看blog了解更多详情。

    【讨论】:

    • 表示不下载 GoogleFit 应用,我无法将应用中的数据同步到 google fit 仪表板?
    • 如果你想同步你的数据,你必须下载GoogleFit App。这是必须的:)
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-06-17
    • 2015-04-27
    相关资源
    最近更新 更多