Skip to content
This repository has been archived by the owner on Apr 13, 2021. It is now read-only.

[iOS] HeathKit - background delivery #10

Open
fvisticot opened this issue Jul 11, 2019 · 3 comments
Open

[iOS] HeathKit - background delivery #10

fvisticot opened this issue Jul 11, 2019 · 3 comments
Labels
enhancement New feature or request

Comments

@fvisticot
Copy link

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]

@krokyze
Copy link
Owner

krokyze commented Jul 22, 2019

Hey, currently you can only use it foreground.

@krokyze krokyze added the enhancement New feature or request label Jul 22, 2019
@krokyze krokyze changed the title [iOS] Heathkit [iOS] HeathKit - background delivery Jul 22, 2019
@AmitaiMazliah
Copy link

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

@W2YAdmin
Copy link

W2YAdmin commented Mar 6, 2020

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants