~/talk

How to handle all kind of notifications in Flutter

Talkat Fluttercon Europe 2023 · 2023-07-05..07-07· [flutter]
links:none on file
slides:none on file

Practical guide for notifications using Firebase Cloud Messaging: use FCM for server pushes, Firebase Functions + Admin SDK to send messages, and prefer flutter_local_notifications to render data‑only messages locally so the app computes content and uses stable notification IDs and thread/group keys. Background handlers require the @pragma("vm:entry-point") decorator and reinitializing Firebase; use a Riverpod ProviderContainer to access services off the widget tree, handle iOS time limits (<5s), request runtime permissions (Android 13, web, iOS), and test platform‑specific behaviors.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 1:08Types of notifications
  3. 3:13Device vs server notifications
  4. 4:58Setting up FCM
  5. 7:06Requesting notification permissions
  6. 8:33Foreground and background notifications
  7. 10:47Handling background messages
  8. 12:12Sending notifications from server
  9. 14:00Data-only notifications
  10. 15:45Testing notifications
  11. 16:48Handling data-only notifications
  12. 17:09Binding notifications to GoRouter
  13. 18:13Handling killed app state
  14. 19:37Using Flutter Local Notifications
  15. 22:46Debugging notifications on iOS
  16. 23:51Conclusion and Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.