ar be de es fr hi it ja nl pl pt ru sv tr uk uz zh en
Normally an Android device enters Doze mode to save energy when it isn't being used. If you need to reliably receive glucose values via Bluetooth or TCP/IP you need to switch off battery optimizations for Juggluco, and sometimes also switch off some battery optimizations for the whole device, to prevent that Android switches off Juggluco. Many devices have additional settings — battery optimisation, background activity and start-on-boot — that may need to be changed. You can find them under Android settings->Battery. See https://dontkillmyapp.com.
When using Watch 4, 5, 6 or 7, you have to Allow background activity in the Galaxy Wearable companion app, Watch settings->Apps->Juggluco. For watches that don't have this setting, you can use the following command from your computer:
adb shell cmd appops set tk.glucodata RUN_IN_BACKGROUND allow
To disable doze mode:
adb shell dumpsys deviceidle disable