Android Push Notifications
Push notifications are a great way to keep your users engaged and informed about your app. In this guide, you’ll learn how to configure a sync
at valmi.io
and to display them to your users.
Introduction
Firebase Cloud Messaging (FCM)
is the core service in Firebase that enables sending push notifications
to Android
devices. It provides a reliable and scalable infrastructure for delivering messages to targeted users or devices. FCM
supports various messaging types, including notification messages and data messages.
Creating Service Account Credentials
- Go to the Firebase console and select your project.
- Click on the gear icon located in the top-left corner and navigate to
Project settings
.- In the
Service Accounts
tab, scroll down to find the section titled “Firebase Admin SDK” and click on theGenerate New Private Key
button.- A dialog box will appear with a warning about the sensitivity of the generated private key. Read the information carefully and click on the
Generate Key
button.- The private key file will be downloaded automatically. It is a JSON file containing your Service Account credentials.
Firebase Admin Console
Creating Firebase Connection on valmi.io
- Go to
destinations
onvalmi.io
and click on+DESTINATION
to create a new destination. SelectAndroid Push Notifications
as the destination.
Selecting Destination
- Provide the desired
Connection Name
and uploaded theFirebase Service Account
details file from the Firebase console.
Configuring Destination
- Click on
Next
to create the destination. If the connection details are valid, the destination will be created successfully.
Setting up the sync
Supported Sync Modes
Android Push Notifications
supports the following destination sync modes. Please refer to the Destination Sync Modes for more information on the different destination modes.
Destination Mode | Supported |
---|---|
Append | ✅ |
1. Creation
Go to the syncs
section in valmi.io and click on the +SYNC
button to initiate the creation of a new sync.
2. Warehouse and Destination Selection
- Choose the desired data source for your sync. This could be any of the supported sources.
- Select “Android Push Notifications” as the destination for your sync. And proceed to the
mapping
page.
3. Mapping Source Columns to Destination Fields
- On the
Mapping
page, map the source columns to the destination fields. The following table lists the supported destination fields. these fields can be used to createtemplated
push notifications.
Fields Mapping
- Click on the
Next
button. Provide aname
for your sync andschedule
it to run at the desired frequency.
4. Verifying the Sync
run
- On the
sync
page
Sync runs page
- On Firebase Console, navigate to
Cloud Messaging
and click onView FCM reporting dashboard
to view the push notification statistics.
Reports on Firebase console page
- On the mobile device ( Demo App ), App should receive the push notification.