scheduleDailyNotification method

Future<void> scheduleDailyNotification(
  1. int id,
  2. TZDateTime input
)

Implementation

Future<void> scheduleDailyNotification(int id, tz.TZDateTime input) async {
  final platformChannelSpecifics = await _notificationDetails();
  await _localNotifications.zonedSchedule(
    id,
    appName,
    notificationContent,
    input,
    platformChannelSpecifics,
    payload: notificationContent,
    androidAllowWhileIdle: true,
    uiLocalNotificationDateInterpretation:
        UILocalNotificationDateInterpretation.absoluteTime,
    matchDateTimeComponents: DateTimeComponents.time,
  );
}