I have a notification in my app which is triggering too frequently. I want to store a date/time variable when the notification is triggered. And then the next time it will compare the current date/time and only play the notification if it was more than 10 minutes since the last one.
I have found many tutorials online about comparing dates to find out which of the two dates is newer but not this?