I ended up using sessionStorage, it is equal to the localStorage object, except that stores data for only one session
Phonegap_event when application closes
-
23-07-2023 - |
Domanda
Is there an event that listens if app is closed? I want to clear my localStorage when it closes. So something like
document.addEventListener("applicationClose", yourCallbackFunction, false);
Any suggestion would be helpful!
Or to erase it when app starts!
Soluzione
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow