how set flutter LocalNotification.schedule alarm every 2weeks?

109 views Asked by At

example during 3 weeks.

1 week Monday - alarm on 2 weeks Monday - alarm no 3 weeks Monday - alarm on

how can I do it? I try DateTimeComponents.dateAndTime, but it's only run for one day. and I try DateTimeComponents.dayOfMonthAndTime, but it's only run the first monday in a month. and I try DateTimeComponents.dayOfWeekAndTime, but it's run every week

I wonder how to set duration 2weeks.

wait for flutterLocalNotificationsPlugin.zonedSchedule(
            int.parse(_alarmID), // id는 unique해야합니다. int값
            notiTitle,
            notiDesc,
            _setNotiTime(),
            detail,
            androidAllowWhileIdle: true,
            uiLocalNotificationDateInterpretation:
                UILocalNotificationDateInterpretation.absoluteTime,
            matchDateTimeComponents: DateTimeComponents.dayOfWeekAndTime,
          );
0

There are 0 answers