79129077

Date: 2024-10-26 17:18:44
Score: 0.5
Natty:
Report link

Use Flutter Local Notifications library - https://pub.dev/packages/flutter_local_notifications#periodically-show-a-notification-with-a-specified-interval

Periodically show a notification with a specified interval:

const AndroidNotificationDetails androidNotificationDetails =
AndroidNotificationDetails(
    'repeating channel id', 'repeating channel name',
    channelDescription: 'repeating description');
const NotificationDetails notificationDetails =
NotificationDetails(android: androidNotificationDetails);
await flutterLocalNotificationsPlugin.periodicallyShow(0, 'repeating title',
'repeating body', RepeatInterval.everyMinute, notificationDetails,
androidAllowWhileIdle: true);
Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Иван Игонькин