showScheduledLocalNotification method
Future<void>
showScheduledLocalNotification(
{ - required int id,
- required int seconds,
})
Implementation
Future<void> showScheduledLocalNotification({
required int id,
required int seconds,
}) async {
final platformChannelSpecifics = await _notificationDetails();
await _localNotifications.zonedSchedule(
id,
appName,
notificationContent,
tz.TZDateTime.now(tz.local).add(
Duration(seconds: seconds),
),
platformChannelSpecifics,
payload: notificationContent,
uiLocalNotificationDateInterpretation:
UILocalNotificationDateInterpretation.absoluteTime,
androidAllowWhileIdle: true,
);
}