Cordova/Phonegap - Does beforeunload work or any alternatives?
<p>So I have a client object I want to write to a file before the app is killed.  Does anyone know if the browser beforeunload event works for that purpose?  Or does Cordova have a native way to handle that condition?  </p>

<p>I know there are the "pause" and "resume" events, but I'm not sure if those handle the "kill" event as well.  I can't seem to find any documentation on this anywhere.  </p>

<p>If anyone can point to the right direction of have a recommendation it would be appreciated.  </p>