07-19-2022 05:15
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

07-19-2022 05:15
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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.

Accepted Solutions
07-19-2022 13:27
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


07-19-2022 13:27
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
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.
Gondwana Software
07-19-2022 13:27
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


07-19-2022 13:27
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
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.
Gondwana Software
07-20-2022 00:38 - edited 07-20-2022 00:39
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

07-20-2022 00:38 - edited 07-20-2022 00:39
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

07-20-2022 00:57 - edited 07-20-2022 00:58
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
My bad...
I had this at the bottom of my code which was preventing all the sensors from sending data...
