WorkManager doWork callback is not received in Redmi and other custom Chinese ROM when device got rebooted and force closed the app
My app is not receiving push notification in Redmi phones while the app is in the background or it got killed by swiping. So I am trying to wake the phone by WorkManager which works on many phones except Redmi and other Chinese custom ROM phones. Here is my code of Worker class public class OpenTalkWorkManager extends Worker { @NonNull @Override public Result doWork() { Log.i("wake_up", "Waking up now: " + System.currentTimeMillis()); FirebaseUtils.getInstance().updateUserPresenceStatus(getApplicationContext(), "yes"); Intent intent = new Intent("com.opentalk.WAKE_UP"); getApplicationContext()