Update:
The error was not due to the updateHandler as I thought, but due to another webAPI call.
I also discovered that the function works using datatypes with less data stored, while with datatypes like heart rate with high sample rate, the problem starts occuring. Maybe there is a timeout in the completion-handler? Prints inside of the query don't execute for datatypes with many samples.
Topic:
App & System Services
SubTopic:
Health & Fitness
Tags: