ios - 如何使用 Health Kit 断开与 Health App 的源连接?

标签 ios ios8 healthkit hkhealthstore

我已使用 Health Kit 从现有应用程序与 Health 应用程序建立连接,授予权限并执行读写操作。现在我想断开我的应用程序与健康应用程序的连接。那么可以使用 HealthKit 来断开连接吗?

最佳答案

一旦您的应用程序成为 HealthKit 源,就无法将其自身删除。如果用户从设备中删除该应用程序,系统将提示他们删除与该应用程序关联的数据,并且他们还可以通过转到“健康”中的“来源”选项卡来撤销该应用程序的授权。

关于ios - 如何使用 Health Kit 断开与 Health App 的源连接?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31317181/

相关文章:

ios - 使用 OSX 10.11 Beta 5 (El Capitan) 设置 IPv6 环境

ios - 当我在 ios 中上传图像时,expo-image-picker 给出网络请求失败,但在 android 上工作正常

ios - 更改 UISwitch 图像

ios - AVPlayer缓冲问题

ios - 等待 subview 显示,然后处理,然后移除 subview

ios - 滚动后的单元格在图像上显示图像

uikit - UIActionSheet 可以多选 iOS8 – 不移除 UIWindow

ios - 在现有的 HKWorkout 上添加元数据

ios - 错误域 = com.apple.healthkit = 3 "Workout Session is Not Current"错误?

rest - 我们可以通过 WEB/REST API 访问 Apple Watch 跟踪数据吗?