News for hackers. Stuff that matters.
Re:Your battery status may be used to track you online by Mister_Snuggles on Tuesday August 02, 2016 @11:49AM (#12210783)
I would think that if you architect your app to handle disappearing network connections gracefully, it will probably handle the user shutting down the phone gracefully too. If the battery is critically low, the user will get popups from the operating system at various points and can make a decision whether or not to keep using your application.

You could also expose an offline-only option somewhere in your application. A user might want to do this if they are in an area with marginal coverage (e.g., there is a connection, but it's basically useless) or roaming, etc.

Re:Your battery status may be used to track you online by DougWebb on Tuesday August 02, 2016 @03:46PM (#12212741)
A disappearing network connection is a different case, because the app continues running. Imminent power failure is different because the app is about to be terminated, probably not gracefully. This is also different from the user shutting down the app manually, because that's probably a graceful shutdown which will give you a chance to save some state before termination.