07-19-2022 05:15
07-19-2022 05:15
Hello,
I've developed a custom app which sends HR values to the companion app, which in turn forwards them to a nodejs server via fetch.
Unfortunately, the moment the display goes to sleep the app stops sending the values to the companion.
Is there a workaround for that?
Thank you.
Carlo
Answered! Go to the Best Answer.
07-19-2022 13:27
07-19-2022 13:27
ontick() won't be called when the display goes off, so don't put your comms code in there.
If an app that's closing after 2 minutes, set appTimeoutEnabled to false.
07-19-2022 13:27
07-19-2022 13:27
ontick() won't be called when the display goes off, so don't put your comms code in there.
If an app that's closing after 2 minutes, set appTimeoutEnabled to false.
07-20-2022 00:38 - edited 07-20-2022 00:39
07-20-2022 00:38 - edited 07-20-2022 00:39
Thanks!
I had already put this into my app code but it did't work:
07-20-2022 00:57 - edited 07-20-2022 00:58
07-20-2022 00:57 - edited 07-20-2022 00:58
My bad...
I had this at the bottom of my code which was preventing all the sensors from sending data...