Flutter & Firebase Messaging: push notifications for Android & iOS

preview_player
Показать описание

This video is a comprehensive tutorial on how to implement Firebase Cloud Messaging (FCM) in a Flutter application for both Android and iOS applications, covering foreground and background/terminated states.

Timecodes:
0:00 - Intro
0:22 - Create new Firebase project
0:59 - Add dependencies to Flutter project
01:25 - Configure Flutter project by using Firebase CLI
02:42 - Create APNs key on Apple Developer Console
03:27 - Upload APNs key for the project on Firebase Console
04:17 - Add Push Notifications and Background Modes capabilities for iOS app
04:47 - Flutter local notifications plugin for displaying foreground notifications
05:13 - Create Flutter local notifications service
08:23 - Configure iOS main function
09:22 - Create Firebase messaging service
13:11 - Configure usage of Firebase Messaging and Local Notifications services
14:04 - Run the app and fetch Push notifications token
14:33 - Send test remote message from Firebase Console
15:40 - Summary
16:18 - iOS and Android apps
16:29 - Outro

Plugins:
Рекомендации по теме
Комментарии
Автор

There are a lot of **outdated** tutorials out there on how to implement FCM on iOS, but this one is an exception! Bohdan, thank you so much! You saved my day!

ueHMRBukezLEJr
Автор

Loved your content, I was having few issues for iOS and the way you have explained I understood where I was having issues. 😀 Thank you

TheWaheed
Автор

Everything on point. Best video on this topic. Ty

johndoe
Автор

Nice to see you creating videos :)
Hope you are doing fine!
Cheers
- Lorenzo

memoriasIT
Автор

Thank you so much, Bohdan, very helpful. However, I have one question if you could answer: in my app, I have three flavors - production, staging, and development. These are all connected to separate Firebase projects. Therefore, I will need to generate three separate APN keys for each flavor, or one key will work for all. Please help me with this.

abdullahsheraz
Автор

First of all thank you so much, you did a great job.
However i have a question.
so now we need a token to send the push notification to the targeted device but what if i want to send to all devices ?
And is it possible that we have a cloud function and if a document's field changes we trigger a Push notification to all devices ?

ahmedadel
Автор

When I receive an FCM notification on Android and tap it, the Flutter app opens without displaying the splash screen image. I used the flutter_native_splash package to create the splash screen. Could you kindly help me understand why this issue is occurring?

star-embracing-cat
Автор

Its working in debug apk but not working in release apk whats the solution

Gojo-Satoru-
Автор

you don't need to fiddle with the provisioning certificates ?

FynovaMac
Автор

Сім слів на підтримку каналу каналу каналу каналу 😀

СергейСавченко-иу
join shbcf.ru