我已经实现了这些
问题是,如何在用户输入的特定日期设置通知提醒,以便应用程序提醒我该人的生日。
发布于 2021-08-18 04:34:31
我认为你应该在容易依赖的情况下试试。https://pub.dev/packages/awesome_notifications
String localTimeZone = await AwesomeNotifications().getLocalTimeZoneIdentifier();
String utcTimeZone = await AwesomeNotifications().getLocalTimeZoneIdentifier();
await AwesomeNotifications().createNotification(
content: NotificationContent(
id: id,
channelKey: 'scheduled',
title: 'Notification at every single minute',
body:
'This notification was schedule to repeat at every single minute.',
notificationLayout: NotificationLayout.BigPicture,
bigPicture: 'asset://assets/images/melted-clock.png'),
schedule: NotificationInterval(interval: /*Your Interval in Seconds (60)*/, timeZone: localTimeZone, repeats: true));https://stackoverflow.com/questions/68826540
复制相似问题