FitKit icon indicating copy to clipboard operation
FitKit copied to clipboard

[iOS] HeathKit - background delivery

Open fvisticot opened this issue 5 years ago • 3 comments

Is it possible with the plugin to get data even when app is in background. This feature is required for my use case. It seems possible as describe in this post: [https://stackoverflow.com/questions/26375767/healthkit-background-delivery-when-app-is-not-running]

fvisticot avatar Jul 11 '19 11:07 fvisticot

Hey, currently you can only use it foreground.

krokyze avatar Jul 22 '19 10:07 krokyze

Is it possible with the plugin to get data even when app is in background. This feature is required for my use case. It seems possible as describe in this post: [https://stackoverflow.com/questions/26375767/healthkit-background-delivery-when-app-is-not-running]

You can use my fork https://github.com/AmitaiMazliah/FitKit it's still a work in progress and only implemented for iOS.

for android you can combine it with https://pub.dev/packages/background_fetch and it works perfect

AmitaiMazliah avatar Dec 08 '19 12:12 AmitaiMazliah

Hi @AmitaiMazliah ,

Does your fork support background fetch? I have the Android part working great using background_fetch but facing crashes on IOS.

Do I just need to replace the fit_kit I have with your fork? Are there any other changes needed?

W2YAdmin avatar Mar 06 '20 07:03 W2YAdmin