Show Menu
TOPICS×

Creating Android App and Configuring to use Firebase Cloud Messaging

In this part we will create Android App to receive push notifications sent from Adobe Campaign Standard.In order to receive the push notifications, app needs to be registered with Google's Firebase Cloud Service.
  1. Login to your Firebase account. Firebase is Google's mobile platform that helps you quickly develop high-quality apps. If you do not have Firebase account, please create one from here .
  2. Launch Android Studio
  3. Click on File -> New -> New Project
  4. Select Empty Activity and click Next
  5. Provide a meaningful name to the project. For the purpose of this demo we have named our project as "ACSPushTutorial"
  6. Accept the default package names and click on Finish to create your project.
  7. Your project structure should look similar to the screen shot below
  8. Click on Tools ->Firebase(This adds the project to Firebase)
  9. Click on Set up Firebase Cloud Messaging
  10. Click on
    Connect to Firebase
  11. After your app is connected to Firebase, click on
    Add FCM to your app
  12. When you are adding FCM to your app the wizard will need your permission to make some changes to your project.Click on
    Accept Changes
  13. On successful integration of your app with Firebase, you should get a message like shown below

Configure Push Channel Settings

  1. Login to Firebase console
  2. Open the
    ACSPushTutorial
    project. Click on the gear icon and open the project settings
  3. Tab to the
    Cloud Messaging
    tab. Copy the server key
  4. Login to your Adobe Campaign Standard instance
  5. Click on Adobe Campaign -> Administration->Channels->Mobile App
  6. Select the appropriate Mobile Application Property
  7. Click on the Android icon in the Push Channel settings section
  8. Paste the server key in the Server key field. Everything goes well you should see a SUCCESS message.
To summarize, we have created Android App and connected the Android App with Firebase. We then connected the Mobile App with the Android App by pasting the Android App's server key in to the Mobile App in Adobe Campaign Standard.