05-19-2021 07:59 - edited 05-19-2021 09:46
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

05-19-2021 07:59 - edited 05-19-2021 09:46
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I have an app that will crash/close after some minutes while the display is off. The logs don't indicate any errors. Why is this?
Answered! Go to the Best Answer.
Accepted Solutions
05-22-2021 19:14
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

05-22-2021 19:14
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Try this:
import { me } from "appbit";
me.appTimeoutEnabled = false; // Disable timeout

05-19-2021 12:30 - edited 05-19-2021 12:30
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

05-19-2021 12:30 - edited 05-19-2021 12:30
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Poke()ing the display every 60 seconds seems to prevent the crash. I'm lost

05-22-2021 19:14
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

05-22-2021 19:14
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Try this:
import { me } from "appbit";
me.appTimeoutEnabled = false; // Disable timeout

05-24-2021 06:17
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

05-24-2021 06:17
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Thanks for the response. Unfortunately, this did not resolve the crashing.

05-25-2021 05:38
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


05-25-2021 05:38
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
Is it definitely crashing? The apptimeout is the most likely culprit.
05-25-2021 11:24
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

05-25-2021 11:24
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I see. I had forgotten that I was using an alias for me, so me.appTimeoutEnabled was undefined. After making the correct adjustments, I seem to have the app working now. I have left it sitting for about half an hour without problems
I had eye surgery over the weekend so my eyes are still adjusting to seeing.

05-26-2021 02:34
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


05-26-2021 02:34
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hope your eyes recover soon!
You can alias the import to make it clearer.
import { me as appbit } from "appbit";

