How to schedule and send periodic flutter local notifications with callback (which is called before sending the notification) in flutter

282 views
Skip to first unread message

Navnath Hajare

unread,
Apr 9, 2021, 9:27:52 AM4/9/21
to Flutter Development (flutter-dev)
Via flutter app, I need to send periodic local notifications with callback--where callback is called for each period/interval before sending notification. So far I have tried Timer to schedule periodic local notifications, but it does not work in background i.e. when app is closed. I have also tried flutterLocalNotificationsPlugin.periodicallyShow, but this one does not have callback, which is called before sending notification. Lastly, I have tried Firebase, but it needs notifications to be set in firebase console. how to get callback notification with completed and pending reports after changes in database. Please advice a solution for the above given problem.
stackoverflow link:
github link:

Suzuki Tomohiro

unread,
Apr 9, 2021, 9:44:59 AM4/9/21
to Navnath Hajare, Flutter Development (flutter-dev)
I don’t think that’s possible. You cannot run code before notification. If you know an app that does that, please let me know.

--
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/17ed252a-79d7-480a-8a0e-10f14c527905n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages