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.
Try this:
import { me } from "appbit";
me.appTimeoutEnabled = false; // Disable timeout
Best AnswerTry this:
import { me } from "appbit";
me.appTimeoutEnabled = false; // Disable timeout
Best Answer
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
Is it definitely crashing? The apptimeout is the most likely culprit.
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
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
Hope your eyes recover soon!
You can alias the import to make it clearer.
import { me as appbit } from "appbit";
Best Answer