awesome_notifications
awesome_notifications copied to clipboard
Date is not more valid
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?
This means that the appointment date you set is in the past. In this way your notification is discarded.
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.
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.
Hi, can you assign this issue to me ?
Hi, can you assign this issue to me ?
how can i do this?
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?
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.
This issue was automatically closed due inactivity, but can be reopened at any time.