10-07-2017 06:18
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

10-07-2017 06:18
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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.

Accepted Solutions
10-07-2017 12:35
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


10-07-2017 12:35
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Sure.
import { me } from "appbit"; // register for the unload event me.onunload = () => { console.log("We're about to exit"); }

10-07-2017 12:35
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


10-07-2017 12:35
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Sure.
import { me } from "appbit"; // register for the unload event me.onunload = () => { console.log("We're about to exit"); }

10-07-2017 13:37
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

10-07-2017 13:37
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Thank you!

07-11-2021 22:09
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


07-11-2021 22:09
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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.

