06-12-2022 22:05
06-12-2022 22:05
hello
i'm testing an app for real time heart rate stream
so my watch app has to run in background and appTimeoutEnabled should be false.
can it be possible to run in background and stream the heart rate in specific time?
and another question.
i set the appTimeoutEnabled is false.
but the app closed....
please help me not to close the app
my code and log are below.
code
me.appTimeoutEnabled = false; // Disable timeout
if (me.appTimeoutEnabled) {
console.log("Timeout is enabled");
}
console.log("Timeout check: " + me.appTimeoutEnabled);
log
Answered! Go to the Best Answer.
06-12-2022 22:44
06-12-2022 22:44
The short answer is 'no'.
The longer answers are:
06-12-2022 22:25
06-12-2022 22:25
Apps can't run in the background.
Your assignment to appTimeoutEnabled may not be correct if you imported the API under a different name (eg, 'me as appbit').
06-12-2022 22:34
06-12-2022 22:34
thank you for answering
i solved the appTimeoutEnabeld issue.
there is no way to run in backgound?
there is no way to get the heart rate while the watch app is in background?
06-12-2022 22:44
06-12-2022 22:44
The short answer is 'no'.
The longer answers are: