LocalNotificationSchedule for repeating notifications #3917
Unanswered
divinetouch
asked this question in
Q&A
Replies: 1 comment
-
If you are using repeat you have to set repeats: true then it will repeat. For count I am also not sure how to use that |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to create different local notifications that repeat every day, every month, every week, and every year. It seems like it only work for the first notification and then it never repeats.
example:
{ every: 'day', at: date.toDate(), count: 1 on: { hour: 14, minute: 28, } }
In this case the
at: date.toDate() is 2020-12-08T20:28:40.000Z
I've been setting the
every
property in theLocalNotificationSchedule
today
,week
,month
, etc as the documentation suggested https://capacitorjs.com/docs/apis/local-notifications#local-notificationsSetting the
repeat
totrue
does nothing other than keep showing the notification again and again after I dismissed the notification.Also from what i understand
count
is for setting the frequency. For example,count:2
andevery:day
mean every two days but I could be wrong since the document is completely useless when it comes to explaining how to use those properties. Looking at the code doesn't help either.Does any one know how to properly set a repeatable notification? and how exactly to use
repeat
andcount
?Thank You!!
Beta Was this translation helpful? Give feedback.
All reactions