I’ve been trying to figure out how to use any of background task APIs in order to create a Work Request that fires every day on a specific time of the day on devices running Android 8.0+. The time must be set by the user locally on the device (meaning no GCM).
Is that even possible anymore? Legacy devices with AlarmManager works wonders, but as far as I am aware all pending intents are cleared when the app gets Force Stopped so it’s a no go now.
WorkManager's PeriodicWorkRequest doesn't allow you to set the time to start the Work. I looked into creating a delayed OneTimeWorkRequest and schedule the next one after it runs, but nothing ensures that the work will run on the time I want.
Evernote's Android-Job library has issues with the DailyJob too (https://github.com/evernote/android-job/issues/318).
Any suggestions/ideas more than welcome.