[x] ensuring service is running in the morning / on boot
[x] calling push to send all unsaved data when charging
outside of that - the app should be running save periodically - which will send the data if possible to the server, but may not be able to, so the data will have to be pushed. For save we probably don't want to call requestNetwork since that can eat the battery, but when charging we definitely want to call requestNetwork to push
charging detection has been implemented since 8b518ed10c1f35b3b30000cd0c572b3356ac4b9c - note we're not using job scheduler but rather broadcast receivers and intent filters
push
to send all unsaved data when chargingoutside of that - the app should be running
save
periodically - which will send the data if possible to the server, but may not be able to, so the data will have to bepushed
. Forsave
we probably don't want to callrequestNetwork
since that can eat the battery, but when charging we definitely want to callrequestNetwork
topush