Hi , We are working in a process which uses FCM , but the devices entered into Doze Mode didnt receives and process FCM. Already tried 

ApplicationPolicy.addPackageToBatteryOptimizationWhiteList() 

But still the Device not responding to the FCM.

Android Version 7.0

Knox 2.8

Standard SDK 5.8.0

Is there any method restricts cpu from sleep ?

 

 

Jenna S.Samsung SEAP Moderator
Dec 05, 2018
10:50 pm

Hello Salih, 

The addPackageToBatteryOptimzationWhiteList API should whitelist the application from Doze Mode. Are you saying that this is not working for you?

-Jenna

Comments

Hi Jenna,

Thats correct addPackageToBatteryOptimzationWhiteList is not preventing the application from going into Doze Mode.

Thank you

Ashley

Ashley HurkooDec 06, 2018 at 3:21 am

Hi Jenna,

Thats correct addPackageToBatteryOptimzationWhiteList is not preventing the application from going into Doze Mode.

Thank you

Ashley

Ashley HurkooDec 06, 2018 at 3:21 am