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 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.
Sure.
import { me } from "appbit";
// register for the unload event
me.onunload = () => {
console.log("We're about to exit");
}
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.
Sure.
import { me } from "appbit";
// register for the unload event
me.onunload = () => {
console.log("We're about to exit");
}
Best Answer
Fitbit Product Experts Alumni are retired members of the Fitbit Product Expert Program. Learn more
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