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

Android 12: Application stops sending data to server after ~30 mins #226

Closed adamdewey closed 1 year ago

adamdewey commented 1 year ago

Describe the bug

When using Android 12 the application stops sending data to the server after roughly 30 mins.

If the application is restarted the missing data is then sent to the server.

This causes issues for all integration pieces:

image

image

To Reproduce Steps to reproduce the behavior:

  1. Start application recording 3 sensors on Android 12
  2. Monitor integration with server

Expected behavior Data to be sent continuously from application to server.

Smartphone (please complete the following information):

Additional context

mark-prins commented 1 year ago

unable to replicate so far. I have a release build running on a samsung android 12 and it hasn't stopped yet

adamdewey commented 1 year ago

@mark-prins - strange, is it 0.5.0 downloaded from the releases page?

mark-prins commented 1 year ago

I've made a new build, which has some logging around the sync calls.. so technically no. realistically though, it's the 5.0 branch and a release build, so is almost the same thing. I am running against a local mSupply instance though, so will change that and use a hosted server instead. Perhaps network performance is a problem?

mark-prins commented 1 year ago

@adamdewey which version of mSupply are you using? because I'm running locally, I'm on the sync-v5 branch. I should test with the version you are running. And are you running it locally, or is it a cloud server?

adamdewey commented 1 year ago

@mark-prins V6-04-00

And yeah, it's a cloud server - it's the vaccine demo server. Details are under 'Vaccine and Cold Chain - Stable Demo Server' in BW :)

adamdewey commented 1 year ago

Interestingly I haven't seen this again recently - seems to be running fine on Android 12.

Hmm, will close for now!