Replies: 8 comments 3 replies
-
I have been struggling with a similar issue lately. The case I have is even simpler; I want a daily repeating reminder at a time set by the user. I should be able to use I can answer some of your questions, though. Unfortunately, the best place by far to figure out how LocalNotifications are working is in the source code; the documentation is often inaccurate and provides relatively little info. In the source code, you can see that the schedule options are processed like this:
So if you provide I tried to implement something like this by scheduling one reminder with So I'm stumped. I can't think of a reasonable and robust way to accomplish what seems like the simplest base case usage of repeating reminders. |
Beta Was this translation helpful? Give feedback.
-
I have the same issue, I think a way that could be implemented is like this :
This would trigger the notification every monday at 10:30, but |
Beta Was this translation helpful? Give feedback.
-
I'm having the same issue on Android. I've tried daily, weekly, monthly, and yearly, none of them is working for me. In my case, I also specify the hour and minute in the schedule property. |
Beta Was this translation helpful? Give feedback.
-
Agree with @slevy85, the Should be simple enough to implement, as DateComponents for iOS already supports |
Beta Was this translation helpful? Give feedback.
-
Good Morning. From what I understand from this discussion, I can't use repetition by setting a specific date and time. Today I need to repeat reminders, for example, every day at 7 am, to take a medication and this is not possible. I believe that the repeat setting only makes sense if we set a date and time. But anyway, reading this thread clarified a lot for me, in these 4 days that I am racking my brains with the use of this plugin. |
Beta Was this translation helpful? Give feedback.
-
So I've spent an afternoon trying to implement a reminder that goes off at X o'clock every weekday. Seems it just can't be done and really I'd expect it to be possible :-/ |
Beta Was this translation helpful? Give feedback.
-
I gave up and just did it this way: https://www.codingandclimbing.co.uk/blog/android-localnotifications-with-cordova-capacitor-example |
Beta Was this translation helpful? Give feedback.
-
I was having the same issue and decided to have a look into the Java files for Android and was able to come up with a solution. For those who are still looking for a solution to this problem, you can now implement the weekday feature using the I made a pull request but I am still waiting for it to get merged. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, this is more of a question, than bug as I'm not sure if I have implemented it wrong or need to supply more details in the notification schedule. I am trying to setup a local notification that starts triggering on a specific day, and repeats every 2 weeks, and an added touch will be to set a specific time, so the notification does not go off at 12:00am on the given day.
my environment
I had put this to start
and it worked when i manually set the phone to skip 2 weeks in the future, a couple seconds later the notification appeared. But when I tried adding the
hour
property in theon
it never triggeredSo i want the notification to start on the day that i set, for example if today is the 12th, and the date applied is the 15th, i want it to repeat every 2 weeks from the 15th. and setting the time for hour 10AM. Am i missing something with how i tried adding the
hour
prop?sidenote: is the hour property in 12hr format or 24hr format?
Edit: some more findings, since today is
day 12
, i had set the notification withand i set the phones date to the 15th, no trigger. i set it for 2 weeks after 15 (day 29) and it still did not trigger. Suspiciously I tried setting the phones date to 2 weeks after the 12th (day 24), when the notification was created, and the notification WAS triggered. Also oddly enough the time of the phone was set to the morning on
day 24
and it didn't trigger, as it only triggered after 4pm, because that was when i initially created the notification. it seems like the creation of the notification schedule is ignoring theon
prop entirelyBeta Was this translation helpful? Give feedback.
All reactions