系統版本:14.0.1
在解鎖情況下 提醒可以正常顯示健康資料
https://i.imgur.com/wahl327.png
想要把這個提醒加到自動化排程
但在螢幕鎖定的情況下
會出現下面這個錯誤畫面
https://i.imgur.com/mwQnTxX.png
要如何讓提醒能在鎖定畫面下正常顯示健康資料呢?
謝謝
-
查到這個網頁
https://stackoverrun.com/cn/q/8352128
裡面提到
Because the HealthKit store is encrypted, your app cannot read data from the store when the phone is locked. This means your app may not be able to access the store when it is launched in the background.
目前似乎無解了