This article pertains to:
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
...
Why is my Apple Health data delayed when using the Validic mobile library?Apple has strict guidelines regarding battery consumption during use of an app, background processing, and sleep/locked states. In order to adhere to those guidelines, apps with the Validic Mobile Library embedded in it will update immediately when the app is open and in the foreground. If the app is running in the background or closed, the library will pull data about every hour.
...
Bringing the app back to the foreground does not immediately restart the queue processing. You may want to put [[VLDSession sharedInstance] processQueue]; in the AppDelegate's -applicationDidBecomeActive method, which would ensure that as soon as the app is foregrounded, uploads are resumed.
Also, if the iPhone is re-started Validic will receive HealthKit background updates without the user needing to manually open the app to re-enable subscriptions.
Many data types have their frequency of updates limited. For example, steps will only trigger a background update once per hour or so, no matter how often new data is available, as noted above.
No updates are received when the device is locked (this is a privacy feature). As soon as a device is unlocked, the background delivery observers will be called, as long as the minimum frequency time has passed.