0

I'm trying to set up an alarm once a day so my user knows that he needs to check the app (extracts data from bluetooth devices, etc)

So far, I have used AlarmManager.setExactAndAllowWhileIdle(...), and a broadcastreceiver that plays some sound in the onReceive method, but this won't work when app enters App Standby.

Anyone knows how to properly set an alarm that prompts no matter if the device is in Doze or the app is in App Standby?

  • Check this question of mine: https://stackoverflow.com/questions/63303559/how-to-show-daily-offline-notifications-in-android-10 It may help you :) – null_override Jan 13 '21 at 17:24
  • see Work manager component https://developer.android.com/topic/libraries/architecture/workmanager – ErfanDP Jan 13 '21 at 19:07
  • WorkManager works on some devices, but not on the tablets we use. Not working if device is not charging (and I think it may not work even charging after a long period) – Miguel García Valero Jan 14 '21 at 14:58

0 Answers0