我想使用背景提取在后台提取HealthStore数据,但是我一直收到一个错误:Error Domain=com.apple.healthkit Code=6 "Protected health data is inaccessible" UserInfo=0x17026fdc0 {NSLocalizedDescription=Protected health data is inaccessible}。
苹果公司称:
因为HealthKit存储是加密的,所以当手机被锁定时,应用程序无法从商店读取数据。这意味着你的应用程序在后台启动时可能无法访问商店。
有什么办法可以访问