-
Notifications
You must be signed in to change notification settings - Fork 297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AppleHealthKit.setObserver listener only fires when app is in foreground? #173
Comments
Same issue here! |
Hi @hamxiaoz and @ausaquiVS , did you manage to get the setObserver method running? |
@hamxiaoz @ausaquiVS @Vollkorn01 Hey! It seems that this repository is not being actively maintained now, so I've created a new NPM package and started to maintain and add new features there The repo is this one and I've added some additional documentation and fixed a few issues we have related to the observers in the current build for the Also have worked to allow individual observers for each identifier. Would love to hear your thoughts on that and have any additional help, in case that make sense for you guys! |
@Vollkorn01 Additionally, probably the I've created a new issue to add support for it |
@lucaspbordignon Great stuff that you create a new package! We decided to read out health data as soon as it is written into apple health through enablebackgrounddelivery. We outsourced this task, because there doesn't seem to be any react native implementation. If you're interested, maybe I can share the code when it is finished! |
I'm testing in emulator and my phone with AppleHealthKit.setObserver. Here is what I found out:
Test 1 - it fires when app is foreground
Test 2 - it doesn't fire when app is in background
Can anyone confirm the observer works with background app?
The text was updated successfully, but these errors were encountered: