I have an app that needs to be launching notifications 2 times a day in a specific time, as if it were a reminder. Currently this functionality I'm doing with alarmManager, the problem arises with phones with android 8 since this does not allow Background Services
Researching a bit I find that BroadcastReceiver
can help a little with that problem but still there are times when the alarm fails "Imagine my app as if it were a reminder to take medication" can not fail any day
I have also found that JobScheduler
is a good option although it is used more to do tasks when a certain condition occurs in the system, type when it connects to WIFI or things like that and my app just needs to throw an alarm in a determined time.