Hi,
I have tried using both hik-connect and ivms-4500 on several android devices all running android 9. Notifications work well until the phone has been turned off for 1 minute, and then notifications get delayed due to android doze feature. Setting the apps to not optimize battery does not make a difference. Also keeping the app running in background also does not make any difference. The only way i can get this to work effectively is to disable doze mode completely using adb.
Has anyone been able to get instant notifications on android when the phone has been idle? You have probably noticed these delays also in apps like gmail?
looking further into this, it is definitely caused by android doze and the fact that hikvision are not sending the notifications as high priority. Details for those interested can be found here Optimize for Doze and App Standby | Android Developers
By using high priority notifications, these bypass doze and instantly wake the phone. That is why apps such as messenger, facebook and whatsapp do not suffer from delays....
Does anyone have any workarounds. Can we not request hikvision to look into this?
Thanks
Andy.
I have tried using both hik-connect and ivms-4500 on several android devices all running android 9. Notifications work well until the phone has been turned off for 1 minute, and then notifications get delayed due to android doze feature. Setting the apps to not optimize battery does not make a difference. Also keeping the app running in background also does not make any difference. The only way i can get this to work effectively is to disable doze mode completely using adb.
Has anyone been able to get instant notifications on android when the phone has been idle? You have probably noticed these delays also in apps like gmail?
looking further into this, it is definitely caused by android doze and the fact that hikvision are not sending the notifications as high priority. Details for those interested can be found here Optimize for Doze and App Standby | Android Developers
By using high priority notifications, these bypass doze and instantly wake the phone. That is why apps such as messenger, facebook and whatsapp do not suffer from delays....
Does anyone have any workarounds. Can we not request hikvision to look into this?
Thanks
Andy.