08-05-2019 04:34
08-05-2019 04:34
When my app is open and the screen turns off, it returns to the home screen after a few seconds. How can I do to not return to home screen and avoid leaving my app screen?
Answered! Go to the Best Answer.
08-05-2019 11:37
08-05-2019 11:37
You said it returns to the home screen after a few seconds. Could this be 2 minutes instead?
If so, you may be running into the app timeout feature which causes an app to exit after 2 minutes of inactivity (defined by the display being off). Take a look at the App-Timeout-API:
https://dev.fitbit.com/blog/2018-10-05-announcing-fitbit-os-2.2/#app-timeout-api
John
08-05-2019 06:30
08-05-2019 06:30
You will have to post your code. I have had many instances of my screen turning off but it always returned to the same screen it turned off at.
08-05-2019 11:37
08-05-2019 11:37
You said it returns to the home screen after a few seconds. Could this be 2 minutes instead?
If so, you may be running into the app timeout feature which causes an app to exit after 2 minutes of inactivity (defined by the display being off). Take a look at the App-Timeout-API:
https://dev.fitbit.com/blog/2018-10-05-announcing-fitbit-os-2.2/#app-timeout-api
John
08-05-2019 11:40
08-05-2019 11:40
Solved. Thank you very much.