0
0
Firebasecloud~10 mins

Why push notifications engage users in Firebase - Visual Breakdown

Choose your learning style9 modes available
Process Flow - Why push notifications engage users
User subscribes to notifications
Server sends push notification
Device receives notification
Notification appears on device screen
User taps notification
App opens or action triggered
User engages with content
This flow shows how a push notification moves from server to user device and leads to user engagement.
Execution Sample
Firebase
admin.messaging().sendToDevice(token, payload)
  .then(response => console.log('Sent'))
  .catch(error => console.error('Error'))
This code sends a push notification to a user's device using Firebase Cloud Messaging.
Process Table
StepActionResultUser Impact
1User subscribes to notificationsDevice token registeredReady to receive notifications
2Server sends push notificationNotification sent to device tokenNotification is on its way
3Device receives notificationNotification stored/displayedUser sees alert on screen
4Notification appears on device screenUser alerted visually and/or audiblyUser attention captured
5User taps notificationApp opens or action triggeredUser enters app or performs action
6User engages with contentUser interacts with app featuresIncreased user engagement
7No tap within timeoutNotification dismissedNo engagement from user
💡 Execution stops when user taps notification or notification is dismissed after timeout.
Status Tracker
VariableStartAfter Step 1After Step 2After Step 3After Step 4After Step 5After Step 6Final
device_tokennullregisteredused to sendreceivednotification shownuser tappeduser engagedengagement recorded
notification_statusnonenonesentreceiveddisplayedopened or dismissedengaged or ignoredfinal state
Key Moments - 3 Insights
Why does the notification need a device token?
The device token uniquely identifies the user's device so the server knows where to send the notification, as shown in step 1 and 2 of the execution_table.
What happens if the user does not tap the notification?
If the user does not tap, the notification is dismissed after a timeout (step 7), so no engagement occurs, as shown in the execution_table.
How does a push notification increase user engagement?
By alerting the user visually or audibly (step 4), it captures attention and encourages the user to open the app (step 5), leading to engagement (step 6).
Visual Quiz - 3 Questions
Test your understanding
Look at the execution_table, what is the device_token state after step 3?
Areceived
Bregistered
Cused to send
Dnull
💡 Hint
Check the variable_tracker row for device_token at After Step 3.
At which step does the user actually engage with the app content?
AStep 4
BStep 5
CStep 6
DStep 7
💡 Hint
Refer to the execution_table row describing user engagement.
If the user never taps the notification, what is the final notification_status?
Asent
Bdismissed
Creceived
Dopened
💡 Hint
Look at step 7 in the execution_table for notification dismissal.
Concept Snapshot
Push notifications flow from server to device using a device token.
They alert users visually or audibly.
Users tap notifications to open the app.
This flow increases user engagement.
If not tapped, notifications are dismissed.
Full Transcript
Push notifications engage users by sending messages from a server to a user's device. First, the user subscribes and the device gets a unique token. The server uses this token to send notifications. When the device receives a notification, it shows an alert on the screen. If the user taps it, the app opens or an action happens, leading to user engagement. If the user ignores it, the notification is dismissed after some time. This process helps apps keep users active and interested.