Step 1 - Creating Android App and configuring to use Firebase Cloud Messaging
In this part you will create Android App to receive Push notifications sent from Adobe Campaign Standard. To receive the push notifications, the app needs to be registered with Google’s Firebase Cloud Service.
-
Login to your Firebase account.
Firebase is Google’s mobile platform that helps you quickly develop high-quality apps. If you do not have a Firebase account, please create one from here.
-
Launch Android Studio
-
Click File > New > New Project.
-
Select Empty Activity and click Next.
-
Provide a meaningful name to the project.
For the purpose of this demo we have named our project as ACSPushTutorial
-
Accept the default package names and click Finish to create your project.
-
Your project structure should look similar to the screen shot below
-
Click Tools > Firebase. (this adds the project to Firebase)
-
Click Set up Firebase Cloud Messaging.
-
Click Connect to Firebase.
-
After your app is connected to Firebase, click Add FCM to your app.
-
Click Accept Changes.
When you are adding FCM to your app, the wizard needs your permission to make some changes to your project.
On successful integration of your app with Firebase, you should get a message like the one shown below:
Configure Push Channel Settings
-
Login to Firebase console
-
Open the ACSPushTutorial project.
-
Click the gear icon and open the project settings
-
Tab to the Cloud Messaging tab.
-
Copy the server key
-
Login to your Adobe Campaign Standard instance
-
Click Adobe Campaign > Administration > Channels > Mobile App.
-
Select the appropriate Mobile Application Property.
-
Click the Android icon in the Push Channel settings section.
-
Paste the server key in the server key field.
If everything goes well you should see a SUCCESS message.
To summarize, we have created an Android App and connected the Android App with Firebase. We then connected the Mobile App in Adobe Campaign with the Android App by pasting the Android App’s server key in to the Mobile App in Adobe Campaign Standard.