2

I’ve implemented these things

  1. Databas.
  2. showing the records in list view
  3. There’s a add button to add user name, date of birth
  4. Local notification as well

Problem is ,how to setup notification reminder on the specific date enter by the user so that the app remind me the birthday of the person

Farid Gem
  • 27
  • 5

1 Answers1

0

I think you should try below easy dependency. 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));
Nilesh Senta
  • 5,236
  • 2
  • 19
  • 27
  • Sir could you suggest me any tutorail for this problem. I tried but did not implement. – Farid Gem Sep 04 '21 at 04:00
  • @FaridGem Please check below repository https://github.com/sentanilesh/schedule_notification_fluttrer – Nilesh Senta Sep 04 '21 at 11:10
  • Sir I know how to schedule a notification on a specific time, like you did in the app, after 10 sec a notification displayed but my problem is how to set a Birthday reminder. Suppose I enter my date of birth 8/9/2002, and tomorrow on 9/9/2021 it reminds me that it is your birthday. – Farid Gem Sep 08 '21 at 05:30
  • @FaridGem In this case you can manually add time difference and schedule the notification please check https://github.com/sentanilesh/schedule_notification_fluttrer/commit/df37492b9ee5edda21bf8b44bf24a248649a45ec – Nilesh Senta Sep 08 '21 at 05:49
  • Thank You Sir! but I'm still stuck on it because I don't get any notification with the current date I entered manually. please help me. +923345850933 on whatsApp – Farid Gem Sep 09 '21 at 05:07