Karim Lazaar
Karim Lazaar

Reputation: 101

in Flutter how to get notified in specific time

I have an app for schedul event I want to get the time of the selected and event and allow the user to be notified at this specific time or before some time. I have a data base with many events, the user choose the event so he can be notified before the start.

enter image description here

Text(
       DateTimeFormat.format(sh.premier,
       format: 'D, M j, H:i'),
       style: TextStyle(
       color: Colors.white,
       backgroundColor:
       Colors.black54),
      ),

Upvotes: 1

Views: 5831

Answers (1)

Krish Bhanushali
Krish Bhanushali

Reputation: 2007

These can be done in two ways, you can use Flutter Local Notification, this can help you to schedule notification daily,at a specific time, weekly. Link to these and ref is:

Plugin (Flutter local notifications)

Medium article

Another preferred way is to use push notifications using Firebase this is by far mostly used to control notifications as it provides a custom control for particular users too!

Medium article

YouTube tutorial

Upvotes: 4

Related Questions