SlideShare a Scribd company logo
1 of 22
Download to read offline
Guillaume Bernos - FlutterCon Berlin 2023
How to handle all kind of
notifications?
What are the different types of
notifications?
The different notification providers
• Firebase Cloud Messaging
• APNS
• OneSignal
• Airship
• …
A lot of them are based on Firebase Cloud Messaging directly,
often providing additional features
Differences between device notifications and server notifications?
Server noti
fi
cations
• Noti
fi
cations that depend on another
person's action
• Noti
fi
cations that depend on a
speci
fi
c time or event
Device noti
fi
cations
• Scheduled from the user
• Doesn’t need tracking from the
server
• Triggered depending on user’s
location
Examples
Setup notification your Flutter App using FCM
• Each platform needs a speci
fi
c setup
• You will need platform con
fi
guration
fi
les `google-services.json` and
`GoogleInfo.plist`
• You should con
fi
rm each platform as you go when building noti
fi
cations
https://
fi
rebase.google.com/docs/cloud-messaging/
fl
utter/client
Setup notification your Flutter App using FCM
Requesting permissions
• Every platform now requires permission to display a noti
fi
cation
• Good practices:
• Not requesting permissions as soon as your app is open
• You should explain what will be sent
• Users should be able to unsubscribe from each noti
fi
cation type
individually
https://
fi
rebase.google.com/docs/cloud-messaging/
fl
utter/client
Setup notification your Flutter App using FCM
Requesting permissions
https://
fi
rebase.google.com/docs/cloud-messaging/
fl
utter/client
Differences between foreground and background
Background noti
fi
cations
• App can be opened or not
• If app is killed, it will be started to
handle the noti
fi
cation
• You should handle the noti
fi
cation
quickly enough
Foreground noti
fi
cations
• Receiving a noti
fi
cation when the
app is already opened
• A device noti
fi
cation should probably
not be displayed
• Adding the noti
fi
cation to the
noti
fi
cation page
Setup notification your Flutter App using FCM
Listen to noti
fi
cations in Foreground
https://
fi
rebase.google.com/docs/cloud-messaging/
fl
utter/client
Setup notification your Flutter App using FCM
Listen to noti
fi
cations in Background
https://
fi
rebase.google.com/docs/cloud-messaging/
fl
utter/client
Send notification from a server using TS
• You can send a noti
fi
cation using Node.js, Java, Python, Go or C#
• No Dart SDK currently, you can use the API directly
• Using `
fi
rebase init functions` is the easiest way of initializing a TypeScript
Cloud Function to send a noti
fi
cation
Send notification from a server using TS
The data-only notifications
Trigger actions in your app
• Data-only noti
fi
cations are used to trigger actions in your App
• Could be logging something or changing a setting
• Your app has to answer this noti
fi
cation fast enough; otherwise it might get
rate limited
• Your app will have to handle the noti
fi
cation on its own
The data-only notifications
Bind a notification to GoRouter
• You can get the global instance
of the router and use it
Access Riverpod in the background thread
• Allows to reuse the chain of dependency
from Riverpod outside of the Widget Tree
• You should still access the
ProviderContainer from Consumer
widget when you can
When to use Flutter Local Notification
• FLN is a powerful Flutter plugins that allow to display of noti
fi
cation locally
• It supports features like displaying grouped noti
fi
cation
• Can be used to customise noti
fi
cation for each platforms
• Can be used with data-only noti
fi
cations
Notification Id
• You should ensure that your noti
fi
cation is always bound to an Id
• Helps to clear the noti
fi
cation if needed
• Prevent displaying the noti
fi
cation twice if the servers sends it too many time
Threads
• Helps user identi
fi
es noti
fi
cations
from the same conversation
• Easy with Flutter Local
Noti
fi
cation
Debugging notifications
• When your noti
fi
cation cannot be received on iOS, there is a special issue to
help you troubleshoot and get all the logs required
Questions? 😁

More Related Content

Similar to How-to-handle-all-kind-of-notifications.pdf

Azure Notification hub
Azure Notification hubAzure Notification hub
Azure Notification hubLuca Di Fino
 
Getting Started with Cloud Foundry on Bluemix
Getting Started with Cloud Foundry on BluemixGetting Started with Cloud Foundry on Bluemix
Getting Started with Cloud Foundry on BluemixJake Peyser
 
Getting Started with Cloud Foundry on Bluemix
Getting Started with Cloud Foundry on BluemixGetting Started with Cloud Foundry on Bluemix
Getting Started with Cloud Foundry on BluemixDev_Events
 
IBM Bluemix cloudfoundry platform
IBM Bluemix cloudfoundry platformIBM Bluemix cloudfoundry platform
IBM Bluemix cloudfoundry platformDaniela Zuppini
 
apidays Dubai & Middle East 2023 - Combining APIs and Events, Richard Bosch, ...
apidays Dubai & Middle East 2023 - Combining APIs and Events, Richard Bosch, ...apidays Dubai & Middle East 2023 - Combining APIs and Events, Richard Bosch, ...
apidays Dubai & Middle East 2023 - Combining APIs and Events, Richard Bosch, ...apidays
 
Pivotal Cloud Foundry 2.3: A First Look
Pivotal Cloud Foundry 2.3: A First LookPivotal Cloud Foundry 2.3: A First Look
Pivotal Cloud Foundry 2.3: A First LookVMware Tanzu
 
3 Reasons to Select Time Series Platforms for Cloud Native Applications Monit...
3 Reasons to Select Time Series Platforms for Cloud Native Applications Monit...3 Reasons to Select Time Series Platforms for Cloud Native Applications Monit...
3 Reasons to Select Time Series Platforms for Cloud Native Applications Monit...DevOps.com
 
Apache Cordova phonegap plugins for mobile app development
Apache Cordova phonegap plugins for mobile app developmentApache Cordova phonegap plugins for mobile app development
Apache Cordova phonegap plugins for mobile app developmentwebprogr.com
 
Panther Sniffer for DQMH®.pptx
Panther Sniffer for DQMH®.pptxPanther Sniffer for DQMH®.pptx
Panther Sniffer for DQMH®.pptxEnriqueNo2
 
Using Microservices Architecture and Patterns to Address Applications Require...
Using Microservices Architecture and Patterns to Address Applications Require...Using Microservices Architecture and Patterns to Address Applications Require...
Using Microservices Architecture and Patterns to Address Applications Require...Prem Sankar Gopannan
 
Using Microservices Architecture and Patterns to Address Applications Require...
Using Microservices Architecture and Patterns to Address Applications Require...Using Microservices Architecture and Patterns to Address Applications Require...
Using Microservices Architecture and Patterns to Address Applications Require...Michelle Holley
 
SignalR powered real-time x-plat mobile apps!
SignalR powered real-time x-plat mobile apps!SignalR powered real-time x-plat mobile apps!
SignalR powered real-time x-plat mobile apps!Sam Basu
 
Winthorpe - Let Your Applications Listen... And Talk
Winthorpe - Let Your Applications Listen... And TalkWinthorpe - Let Your Applications Listen... And Talk
Winthorpe - Let Your Applications Listen... And TalkRyo Jin
 
flutter_bootcamp_MUGDSC_Presentation.pptx
flutter_bootcamp_MUGDSC_Presentation.pptxflutter_bootcamp_MUGDSC_Presentation.pptx
flutter_bootcamp_MUGDSC_Presentation.pptxRakshaAgrawal21
 
Wifi direct p2p app
Wifi direct p2p appWifi direct p2p app
Wifi direct p2p appgeniushkg
 
NetFoundry - Zero Trust Customer Journey-v1-ext.pptx
NetFoundry - Zero Trust Customer Journey-v1-ext.pptxNetFoundry - Zero Trust Customer Journey-v1-ext.pptx
NetFoundry - Zero Trust Customer Journey-v1-ext.pptxSurendran Naidu
 

Similar to How-to-handle-all-kind-of-notifications.pdf (20)

IzoT platform presentation
IzoT platform presentationIzoT platform presentation
IzoT platform presentation
 
Push notifications on Nokia X
Push notifications on Nokia XPush notifications on Nokia X
Push notifications on Nokia X
 
Azure Notification hub
Azure Notification hubAzure Notification hub
Azure Notification hub
 
Getting Started with Cloud Foundry on Bluemix
Getting Started with Cloud Foundry on BluemixGetting Started with Cloud Foundry on Bluemix
Getting Started with Cloud Foundry on Bluemix
 
Getting Started with Cloud Foundry on Bluemix
Getting Started with Cloud Foundry on BluemixGetting Started with Cloud Foundry on Bluemix
Getting Started with Cloud Foundry on Bluemix
 
Getting Started with Cloud Foundry on Bluemix
Getting Started with Cloud Foundry on BluemixGetting Started with Cloud Foundry on Bluemix
Getting Started with Cloud Foundry on Bluemix
 
IBM Bluemix cloudfoundry platform
IBM Bluemix cloudfoundry platformIBM Bluemix cloudfoundry platform
IBM Bluemix cloudfoundry platform
 
apidays Dubai & Middle East 2023 - Combining APIs and Events, Richard Bosch, ...
apidays Dubai & Middle East 2023 - Combining APIs and Events, Richard Bosch, ...apidays Dubai & Middle East 2023 - Combining APIs and Events, Richard Bosch, ...
apidays Dubai & Middle East 2023 - Combining APIs and Events, Richard Bosch, ...
 
Pivotal Cloud Foundry 2.3: A First Look
Pivotal Cloud Foundry 2.3: A First LookPivotal Cloud Foundry 2.3: A First Look
Pivotal Cloud Foundry 2.3: A First Look
 
3 Reasons to Select Time Series Platforms for Cloud Native Applications Monit...
3 Reasons to Select Time Series Platforms for Cloud Native Applications Monit...3 Reasons to Select Time Series Platforms for Cloud Native Applications Monit...
3 Reasons to Select Time Series Platforms for Cloud Native Applications Monit...
 
Apache Cordova phonegap plugins for mobile app development
Apache Cordova phonegap plugins for mobile app developmentApache Cordova phonegap plugins for mobile app development
Apache Cordova phonegap plugins for mobile app development
 
Panther Sniffer for DQMH®.pptx
Panther Sniffer for DQMH®.pptxPanther Sniffer for DQMH®.pptx
Panther Sniffer for DQMH®.pptx
 
Using Microservices Architecture and Patterns to Address Applications Require...
Using Microservices Architecture and Patterns to Address Applications Require...Using Microservices Architecture and Patterns to Address Applications Require...
Using Microservices Architecture and Patterns to Address Applications Require...
 
Using Microservices Architecture and Patterns to Address Applications Require...
Using Microservices Architecture and Patterns to Address Applications Require...Using Microservices Architecture and Patterns to Address Applications Require...
Using Microservices Architecture and Patterns to Address Applications Require...
 
SignalR powered real-time x-plat mobile apps!
SignalR powered real-time x-plat mobile apps!SignalR powered real-time x-plat mobile apps!
SignalR powered real-time x-plat mobile apps!
 
Winthorpe - Let Your Applications Listen... And Talk
Winthorpe - Let Your Applications Listen... And TalkWinthorpe - Let Your Applications Listen... And Talk
Winthorpe - Let Your Applications Listen... And Talk
 
flutterbootcamp
flutterbootcampflutterbootcamp
flutterbootcamp
 
flutter_bootcamp_MUGDSC_Presentation.pptx
flutter_bootcamp_MUGDSC_Presentation.pptxflutter_bootcamp_MUGDSC_Presentation.pptx
flutter_bootcamp_MUGDSC_Presentation.pptx
 
Wifi direct p2p app
Wifi direct p2p appWifi direct p2p app
Wifi direct p2p app
 
NetFoundry - Zero Trust Customer Journey-v1-ext.pptx
NetFoundry - Zero Trust Customer Journey-v1-ext.pptxNetFoundry - Zero Trust Customer Journey-v1-ext.pptx
NetFoundry - Zero Trust Customer Journey-v1-ext.pptx
 

Recently uploaded

Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docxPoojaSen20
 

Recently uploaded (20)

Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docx
 

How-to-handle-all-kind-of-notifications.pdf

  • 1. Guillaume Bernos - FlutterCon Berlin 2023 How to handle all kind of notifications?
  • 2. What are the different types of notifications?
  • 3. The different notification providers • Firebase Cloud Messaging • APNS • OneSignal • Airship • … A lot of them are based on Firebase Cloud Messaging directly, often providing additional features
  • 4. Differences between device notifications and server notifications? Server noti fi cations • Noti fi cations that depend on another person's action • Noti fi cations that depend on a speci fi c time or event Device noti fi cations • Scheduled from the user • Doesn’t need tracking from the server • Triggered depending on user’s location
  • 6. Setup notification your Flutter App using FCM • Each platform needs a speci fi c setup • You will need platform con fi guration fi les `google-services.json` and `GoogleInfo.plist` • You should con fi rm each platform as you go when building noti fi cations https:// fi rebase.google.com/docs/cloud-messaging/ fl utter/client
  • 7. Setup notification your Flutter App using FCM Requesting permissions • Every platform now requires permission to display a noti fi cation • Good practices: • Not requesting permissions as soon as your app is open • You should explain what will be sent • Users should be able to unsubscribe from each noti fi cation type individually https:// fi rebase.google.com/docs/cloud-messaging/ fl utter/client
  • 8. Setup notification your Flutter App using FCM Requesting permissions https:// fi rebase.google.com/docs/cloud-messaging/ fl utter/client
  • 9. Differences between foreground and background Background noti fi cations • App can be opened or not • If app is killed, it will be started to handle the noti fi cation • You should handle the noti fi cation quickly enough Foreground noti fi cations • Receiving a noti fi cation when the app is already opened • A device noti fi cation should probably not be displayed • Adding the noti fi cation to the noti fi cation page
  • 10. Setup notification your Flutter App using FCM Listen to noti fi cations in Foreground https:// fi rebase.google.com/docs/cloud-messaging/ fl utter/client
  • 11. Setup notification your Flutter App using FCM Listen to noti fi cations in Background https:// fi rebase.google.com/docs/cloud-messaging/ fl utter/client
  • 12. Send notification from a server using TS • You can send a noti fi cation using Node.js, Java, Python, Go or C# • No Dart SDK currently, you can use the API directly • Using ` fi rebase init functions` is the easiest way of initializing a TypeScript Cloud Function to send a noti fi cation
  • 13. Send notification from a server using TS
  • 14. The data-only notifications Trigger actions in your app • Data-only noti fi cations are used to trigger actions in your App • Could be logging something or changing a setting • Your app has to answer this noti fi cation fast enough; otherwise it might get rate limited • Your app will have to handle the noti fi cation on its own
  • 16. Bind a notification to GoRouter • You can get the global instance of the router and use it
  • 17. Access Riverpod in the background thread • Allows to reuse the chain of dependency from Riverpod outside of the Widget Tree • You should still access the ProviderContainer from Consumer widget when you can
  • 18. When to use Flutter Local Notification • FLN is a powerful Flutter plugins that allow to display of noti fi cation locally • It supports features like displaying grouped noti fi cation • Can be used to customise noti fi cation for each platforms • Can be used with data-only noti fi cations
  • 19. Notification Id • You should ensure that your noti fi cation is always bound to an Id • Helps to clear the noti fi cation if needed • Prevent displaying the noti fi cation twice if the servers sends it too many time
  • 20. Threads • Helps user identi fi es noti fi cations from the same conversation • Easy with Flutter Local Noti fi cation
  • 21. Debugging notifications • When your noti fi cation cannot be received on iOS, there is a special issue to help you troubleshoot and get all the logs required