You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using healthkit to obtain some fit data like steps, distance, and calories, I can obtain that information without a problem.
The problem starts when I try to bring that information to my endpoint, monitorSampleType seems to work it when the app is foreground, but when the app is not running, this doesn't work. I understand that HKObserverQuery activates my application when the information is updated in healthkit, but this is not happening.
I activated background fetch of capabilities and I edited my schema to check the option of "launch due to a background fetch event".
xcode logs: Ionic Native: deviceready event fired after 2037 ms Setting up ObserverQuery Background devliery enabled HKQuantityTypeIdentifierStepCount Executing ObserverQuery HealthKit plugin received a monitorSampleType, passing it to JS.
Am I doing something wrong?
The text was updated successfully, but these errors were encountered:
Hello guys,
I'm using healthkit to obtain some fit data like steps, distance, and calories, I can obtain that information without a problem.
The problem starts when I try to bring that information to my endpoint,
monitorSampleType
seems to work it when the app is foreground, but when the app is not running, this doesn't work. I understand thatHKObserverQuery
activates my application when the information is updated in healthkit, but this is not happening.I activated background fetch of capabilities and I edited my schema to check the option of "launch due to a background fetch event".
this is my code:
xcode logs:
Ionic Native: deviceready event fired after 2037 ms Setting up ObserverQuery Background devliery enabled HKQuantityTypeIdentifierStepCount Executing ObserverQuery HealthKit plugin received a monitorSampleType, passing it to JS.
Am I doing something wrong?
The text was updated successfully, but these errors were encountered: