HealthStore enableBackgroundDelivery when screen is locked

前端 未结 4 771
栀梦
栀梦 2020-12-29 15:36

Hello I\'m trying to setup the health store observer with background delivery enabled. My problem is that it won\'t deliver anything when the screen is locked. I have simpli

4条回答
  •  伪装坚强ぢ
    2020-12-29 16:07

    In case of HKObserverQuery, you have to enable any of the background modes of the application to get notified for the ObserverQuery in background(application not killed).

    enter image description here

提交回复
热议问题