当前位置:网站首页>【HMS core】【Health Kit】【FAQ】数据订阅功能问题合集
【HMS core】【Health Kit】【FAQ】数据订阅功能问题合集
2022-07-22 06:39:00 【华为开发者论坛】
【问题描述】
怎么将每天手表睡眠数据同步到数据订阅通知接口?
【解决方案】
1.请确保用户的手环已经添加到运动健康App且配对成功,运动健康App中能正常看到睡眠记录;
2.确保运动健康App中,我的→隐私管理 页面,“自动同步健康数据到云”开关已经打开;
3.参考新增/更新订阅记录接口,新增订阅ACTIVITY_RECORD_EVENT$UPDATE
4.用户活动状态变化时,将通过订阅事件通知推送到你的接口URL,根据您的需要过了activityType,具体请参考:https://developer.huawei.com/consumer/cn/doc/development/HMSCore-References/subscriber-event-0000001076878214
【问题描述】
是否需要打开华为健康app相应数据才能触发订阅接口?
【解决方案】
1、首先要完成订阅,才能收到相应的事件通知
新增\更新订阅需要相应的权限,请参考活动/数据类型申请权限。
2、然后查看运动健康App已经默认打开了数据同步功能,自动同步运动和健康数据到云,如果用户手动关闭同步,云侧无法感知数据变化,则不会触发通知。(设置路径:运动健康App→我的→隐私管理)
PS:如果是需要打开app才能收到数据:
请确认下:
1.手表和运动健康是否已经绑定并连接正常。只有在已绑定且连接正常的情况下才会同步数据。
2.数据不能同步,此时运动健康App是否处于active状态。运动健康App有可能被系统清理,尤其是在非华为手机,可以尝试在手机设置或者在手机管家中设置,将运动健康App设置为后台保护程序,同时建议在运动健康App 我的→设置→消息管理 中打开 “通知栏实时显示步数”开关。
更多相关学习资料: https://developer.huawei.com/consumer/cn/forum/topic/0202799779906210351?fid=18?ha_source=zzh |
边栏推荐
- ES6 related interview question 2
- Network Security Learning (Qianfeng network security notes) 5 -- NTFS security permissions
- VR全景在各行各业是如何展示?如何落地应用的?
- 牛客网刷题1【最小步数Fibonacci数列】
- ACM warm-up exercise 3 in 2022 summer vacation (summary of some topics)
- win11怎么关闭触控板?win11关闭触控板的三种解决方法
- Domain Driven Design
- 有人知道oracle cdc这个问题吗?source没有空值,但是查询定义的cdc表时说有空值,让修
- Guys, when Flink SQL job submits a job to yarn, it reports an SQL error that cannot be executed. If it is executed locally, it does not report an error. The server
- MySQL JDBC programming
猜你喜欢
随机推荐
DP subsequence series problem
MySQL series article 4: execution plan
[matrix multiplication] external matrix multiplication
Mongodb query statement >, & gt;=、& lt;、& lt;=、=、!=、 In, not in usage introduction
【FPGA教程案例35】通信案例5——基于FPGA的16QAM调制信号产生,通过matlab测试其星座图
LCD笔记(1)不同接口的LCD硬件操作原理
HCIP ospf接口网络类型实验报告
MySQL 增删改查(進階)
Guys, when Flink SQL job submits a job to yarn, it reports an SQL error that cannot be executed. If it is executed locally, it does not report an error. The server
Deep learning to achieve cross validation (image, signal processing)
[Digital IC] understand Axi protocol in simple terms
Talking about DOM objects in depth, use four versions of demoplus to break the history.state header (more)
CASTOR 通过 Polygonica 3D引擎实现云端大型装配进行高吞吐量分析,HOOPS Exchange助力其实现对 CAD 数据文件读取
Chery Xingtu's product plan was exposed, and the 2.0T turbocharged engine was launched at the end of the year
Can the values of multiple fields be judged at the same time in MySQL query
对称式加密与非对称式加密的对比
中国企业管理软件走向全球化国际化的路径探讨
Detailed explanation of inheritance
cpd配准存在的问题
关键路径实现