Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

App seems to be crashing while display is off.

ANSWERED

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?

 

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

Try this:

 

import { me } from "appbit";

me.appTimeoutEnabled = false; // Disable timeout

View best answer in original post

Best Answer
0 Votes
6 REPLIES 6

Poke()ing the display every 60 seconds seems to prevent the crash. I'm lost

Best Answer
0 Votes

Try this:

 

import { me } from "appbit";

me.appTimeoutEnabled = false; // Disable timeout

Best Answer
0 Votes

Thanks for the response. Unfortunately, this did not resolve the crashing.

Best Answer
0 Votes

Is it definitely crashing? The apptimeout is the most likely culprit.

Best Answer

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.

Best Answer
0 Votes

Hope your eyes recover soon!

 

You can alias the import to make it clearer. 

import { me as appbit } from "appbit";

Best Answer
0 Votes