awesome_notifications icon indicating copy to clipboard operation
awesome_notifications copied to clipboard

Date is not more valid

Open mehrdad78 opened this issue 2 years ago • 7 comments

hi there! i have an app scheduling to notification on some special dates that i get theme from a offline database. when i set a notification i got the warning in my debug console " Date is not more valid". what does it mean?

mehrdad78 avatar Oct 09 '22 12:10 mehrdad78

This means that the appointment date you set is in the past. In this way your notification is discarded.

rafaelsetragni avatar Oct 09 '22 15:10 rafaelsetragni

This means that the appointment date you set is in the past. In this way your notification is discarded.

thanks for your response. so what should i do?in my code in initstate i check if there is a date on today or no if no then i set the next date.

mehrdad78 avatar Oct 10 '22 08:10 mehrdad78

I put some scheduling examples in the Example app, maybe one of them could be useful for you. You can find it inside the example folder here on GitHub.

rafaelsetragni avatar Oct 10 '22 15:10 rafaelsetragni

Hi, can you assign this issue to me ?

JakubPristas avatar Oct 10 '22 18:10 JakubPristas

Hi, can you assign this issue to me ?

how can i do this?

mehrdad78 avatar Oct 10 '22 21:10 mehrdad78

I put some scheduling examples in the Example app, maybe one of them could be useful for you. You can find it inside the example folder here on GitHub.

Thank you Rafael,i'll watch examples,, but another question i have that is: When i want to set next datetime i should use getNextDate or call createnotification again?

mehrdad78 avatar Oct 11 '22 10:10 mehrdad78

getNextDate is just a query method to find out when the next schedule date is. To set a next schedule you must use createNotification again.

rafaelsetragni avatar Oct 11 '22 15:10 rafaelsetragni

This issue was automatically closed due inactivity, but can be reopened at any time.

github-actions[bot] avatar Dec 11 '22 08:12 github-actions[bot]