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.
10-07-2017 12:35
10-07-2017 12:35
Sure.
import { me } from "appbit"; // register for the unload event me.onunload = () => { console.log("We're about to exit"); }
10-07-2017 12:35
10-07-2017 12:35
Sure.
import { me } from "appbit"; // register for the unload event me.onunload = () => { console.log("We're about to exit"); }
10-07-2017 13:37
10-07-2017 13:37
Thank you!
07-11-2021 22:09
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.