showDailyAtTime method

  1. @Deprecated('Deprecated due to problems with time zones. Use zonedSchedule instead.')
Future<void> showDailyAtTime(
  1. int id,
  2. String title,
  3. String body,
  4. Time notificationTime,
  5. IOSNotificationDetails notificationDetails,
  6. {String payload}
)
@Deprecated('Deprecated due to problems with time zones. Use zonedSchedule instead.')

Shows a notification on a daily interval at the specified time.

Implementation

@Deprecated(
    'Deprecated due to problems with time zones. Use zonedSchedule instead.')
Future<void> showDailyAtTime(
  int id,
  String title,
  String body,
  Time notificationTime,
  IOSNotificationDetails notificationDetails, {
  String payload,
}) async {
  validateId(id);
  await _channel.invokeMethod('showDailyAtTime', <String, Object>{
    'id': id,
    'title': title,
    'body': body,
    'calledAt': DateTime.now().millisecondsSinceEpoch,
    'repeatInterval': RepeatInterval.daily.index,
    'repeatTime': notificationTime.toMap(),
    'platformSpecifics': notificationDetails?.toMap(),
    'payload': payload ?? ''
  });
}