Segmented push notifications using Firebase
Last updated
Last updated
Follow these steps to create audiences in Firebase:
Navigate to Firebase Console: Go to the Firebase Console and select your project.
Access Analytics: In the left sidebar, click on "Analytics." If you haven't already set up Analytics, follow the prompts to enable it for your project.
Audiences: Click on "Audiences" under the "Analytics" section in the Firebase Console.
Create an Audience: Click the "+ New Audience" button.
Define Audience Criteria: Name your audience and define the criteria for the audience based on user properties and events. For example, you can create an audience of users who have made a purchase or users who have not opened your app in the last 30 days.
Use Include clause to include users and exclude clause to exclude users from the segment
Save Audience: Click the "Save" button to create the audience.
Now that you've created audiences, you can schedule marketing campaigns targeted at these specific groups of users using Firebase Cloud Messaging (FCM). Follow these steps:
Navigate to Firebase Console: Go to the Firebase Console and select your project.
Access Cloud Messaging: In the left sidebar, click on "Cloud Messaging."
Create a Campaign: Click the "+ New Campaign" button.
Compose Message: Create your campaign message, including the title, body, image, and any other content relevant to your campaign.
Select Target: In the campaign creation, under the "Target" section, select the App you want to target and the User audience(s) from the dropdown list.
Set Delivery Time: Under the "Delivery" section, schedule the campaign for a specific date and time. You can choose to send the campaign immediately or at a later time.
Review and Launch: Review your campaign settings, message, and audience selection. Once you're satisfied, click "Next" and then "Launch Campaign."
Monitor Campaign: After launching the campaign, you can monitor its performance and track engagement metrics in the Firebase Console.