• There's an E.on("kill", function() { ... }) event that can get called when the code gets unloaded, so you can save any data in that.

    But if you only save for every minute where you have activity, that may only be 150 writes/week which is file. The only gotcha is preserving step count for the current minute when swapping apps, which you would have to save state for

About

Avatar for Gordon @Gordon started