Closed littke closed 2 years ago
Would be really great to have this feature! Thanks.
@littke Just wondering if you managed to work around this? If so, what did you do?
I managed to fix it for iOS and get it working by adding weekday
in the DateComponent
. I'm having trouble getting Java (Android) working as I'm not familiar with Java either.
@dahyui I never got it to work! I gave up. Sorry!
I was able to add weekday functionality for the on
keyword for Android . I created a pull request, but if you need it before it merges you should check out the following link and copy and paste the pertinent files. #601
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of the plugin, please create a new issue and ensure the template is fully filled out.
Feature Request
Describe the Feature Request
I'd like to schedule recurring local notifications on Tuesdays and Thursdays at a given hour.
Platform Support Requested
Describe Preferred Solution
I'd like to schedule it using the
on
keyword together with a (new)weekday
(0-6) keyword.Describe Alternatives
I don't see a way around this, as
day
is only 0-30. I could useevery
— but that doesn't let me set the hour of delivery. https://github.com/ionic-team/capacitor/issues/2752 goes into further detail.Related Code
Additional Context
weekday
, support so it could easily be added inLocalNotifications.swift
from what I gather.LocalNotificationsSchedule.java
we are usingSimpleDateFormat
which has au
— day number of week (1-7) support.