Skip to content
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

navigator.health.query won't run in a separate thread in iOS #157

Open
marcarausch opened this issue Jul 8, 2019 · 1 comment
Open

navigator.health.query won't run in a separate thread in iOS #157

marcarausch opened this issue Jul 8, 2019 · 1 comment
Labels
wontfix nah, I won't fix this

Comments

@marcarausch
Copy link

I have found that when I while running the navigator.health.queryAggregated I cannot do anything else on my app so I can't run the process in the background without affecting the user until the process is finished. Running the navigator.health.query works fine in the background without affecting the user functionality on the app. I have tried it with calories and distance dataTypes with bucket = 'day'. Running the app on an iPhone XR. Any ideas what I could do to fix this? I would like to update the data in background without affecting the user.

@dariosalvi78
Copy link
Owner

In Android this is not true, as I developed the code and it runs in a separate thread. In iOS, it relies on Telerik's code and I am not sure if it is actually asynchronous or not (it should if it follows Cordova's recommendations). If it's synchronous, it would be good if someone could help me make it run on another thread. Meanwhile, a workaround can be using a web worker.

@dariosalvi78 dariosalvi78 added the wontfix nah, I won't fix this label Jul 11, 2019
@dariosalvi78 dariosalvi78 changed the title navigator.health.query won't run in background navigator.health.query won't run in background in iOS Jul 11, 2019
@dariosalvi78 dariosalvi78 changed the title navigator.health.query won't run in background in iOS navigator.health.query won't run in a separate thread in iOS Jan 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix nah, I won't fix this
Projects
None yet
Development

No branches or pull requests

2 participants