Fireship · @fireship
Smart Push Notifications with Flutter & FCM
Uploaded June 13, 2019 · Length 11:10
Summary
Learn how to send smart push notifications with Flutter and Firebase Cloud Messaging, including segmenting users, subscribing to topics, and sending notifications to individual devices.
- flutter push notifications
- firebase cloud messaging
- android push notifications
- ios push notifications
- segmenting users
- firebase predictions
- notification topics
- individual device notifications
Transcript preview
The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.
- 0:00
when used correctly push notifications
- 0:02
can be an extremely powerful way to
- 0:03
drive user engagement but when used
- 0:05
incorrectly they can do the exact
- 0:06
opposite and drive users to uninstall
- 0:08
your app luckily there's a service
- 0:10
called firebase cloud messaging that
- 0:11
allows you to be smart about the way you
- 0:13
broadcast notifications to your users
- 0:15
take it from me be smart be safe in
- 0:18
today's video you'll learn how to
- 0:20
receive messages from a front-end
- 0:22
flutter app and also how to broadcast
- 0:23
them from a back-end cloud function
- 0:25
we'll look at how to broadcast
- 0:26
notifications to a single device or user
- 0:29
to a topic or to a segment of your user
- 0:31
base based on the analytics data that
- 0:33
you collect by the end of this video
- 0:34
you'll be able to combine these
- 0:36
techniques together to create a
- 0:37
sophisticated pipeline for app
- 0:39
notifications if you're new here like
- 0:41
and subscribe and you can find the full
- 0:42
source code on fire ship IO and congrats
- 0:45
to mateo Petrovich your last week's
- 0:46
t-shirt winner but there will be another
- 0:48
giveaway with this video all you have to
- 0:49
do is leave a comment below now before
- 0:51
we get into the actual source code let's
- 0:53
talk about the three main ways that you
- 0:54
can send push notifications with
- 0:56
firebase Cloud messaging the most broad
- 0:58
approach is to send a notification to a
- 1:00
segment of your users this could be as
- 1:02
broad as all the users for your Android
- 1:04
app but typically you're going to drill
- 1:06
down to a smaller audience for example
- 1:08
you might want to target all of your
- 1:09
Korean Android users whose last app
- 1:11
engagement was more than ten days ago
- 1:13
and that will tell you exactly how many
- 1:14
users will receive this notification as
- 1:16
well as their relative size to the total
- 1:18
user base on top of that you can use
- 1:20
firebase predictions to dynamically
- 1:22
segment your users and send
- 1:23
notifications based on the type of
- 1:24
engagement you're trying to get and that
- 1:26
means you can just fire the UX person
- 1:27
who's in charge of doing this manually
- 1:29
and like google's AI handle it what are
- 1:31
you getting fire me
- 1:32
no I already why are you still here
- 1:39
another option is to manually subscribe
- 1:41
a user to a notification topic this is
- 1:44
useful if you want a user to opt into a
- 1:46
certain topic or if you want to
- 1:47
programmatically assign them to a topic
- 1:49
in the background of your app for
- 1:51
example a user might follow a certain
- 1:53
category like puppies so you want to
- 1:55
subscribe them to puppy notifications in
- 1:57
the third and most personalized way to
- 1:59
send notifications is to send them to a


