10-07-2017 06:18
10-07-2017 06:18
Do we have an event call back before an app was terminated by user?
for status saving and cleanup jobs
Answered! Go to the Best Answer.
Best Answer10-07-2017 12:35
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.
10-07-2017 12:35
Sure.
import { me } from "appbit";
// register for the unload event
me.onunload = () => {
console.log("We're about to exit");
}
Best Answer10-07-2017 12:35
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.
10-07-2017 12:35
Sure.
import { me } from "appbit";
// register for the unload event
me.onunload = () => {
console.log("We're about to exit");
}
Best Answer10-07-2017 13:37
10-07-2017 13:37
Thank you!
Best Answer07-11-2021 22:09
Fitbit Product Experts Alumni are retired members of the Fitbit Product Expert Program. Learn more
07-11-2021 22:09
What is necessary to stop the App ending in me.unload(), if you want to add an "Are you sure?", or is it too late?
Author | ch, passion for improvement.
Best Answer