msupply-foundation / msupply-cold-chain

Android application for viewing and monitoring temperatures of fridges
GNU General Public License v3.0
3 stars 3 forks source link

Keep app awake #256

Closed mark-prins closed 8 months ago

mark-prins commented 8 months ago

Fixes #255

This is the 'please drain my battery' option 😉 This will implement a wakelock to allow the app to keep interacting and uploading data even when the screen is being saved.

To test: configure a sensor and sync. Start the app, plug the tablet in and see if it continues to sync over 2+ days.