1

I have a app where a user can set his own notification date. Since I'm using JobScheduler to check if the notification date matches the current date, I stumble upon a hurdle that is: The frequency/timeline of the JobScheduler has been set to 15 minutes, meaning that I can't compare the dates.

Example:

Let's say I add a notification date at 10:45 AM to notify me at 10:50 AM. Then the next check of the JobScheduler would be 11:00 AM (10:45 + 15 = 11:00). That would cause that my check (notification_date == current_date) would never match in this case.

How can I solve this problem? Are there any other ways of comparing this?

samuel gast
  • 331
  • 4
  • 17

0 Answers0