Configure an Android service
-
Go to the Profiles and Targets > Services and subscriptions node and click New.
-
Define a Label and an Internal name.
-
Go to the Type field and select Mobile application.
NOTE
The default Subscriber applications (nms:appSubscriptionRcp) target mapping is linked to the recipients table. If you want to use a different target mapping, you need to create a new target mapping and enter it in the Target mapping field of the service. For more on creating target mapping, refer to the this section. -
Then click the Add button to select the application type.
-
Create your Android application. For more on this, refer to this section.
Create the Android mobile application
After creating your service, you now need to create your Android application:
-
From your newly created service, click the Add button to select the application type.
-
Select Create an Android application and enter a Label.
-
Make sure the same Integration key is defined in Adobe Campaign and in the application code via the SDK.
NOTE
The Integration key is fully customizable with string value but needs to be exactly the same as the one specified in the SDK. -
Select the API version: HTTP v1 or HTTP (legacy). These configurations are detailed in this section
-
Fill in the Firebase Cloud Messaging the Android connection settings fields.
-
Click Finish then Save. Your Android application is now ready to be used in Campaign Classic.
By default, Adobe Campaign saves a key in the User identifier (@userKey) field of the Subscriber applications (nms:appSubscriptionRcp) table. This key enables you to link a subscription to a recipient. To collect additional data (such as a complex reconciliation key), you need to apply the following configuration:
Configure the API version
After creating service and a new mobile application, you need to configure your mobile application. The HTTP (legacy) API should not be selected as it has been deprecated by Google.
To configure the HTTP v1 API version, follow the steps below:
-
In your Mobile application creation wizard window, select HTTPV1 in the API version drop-down.
-
Click Load project json file to extract project details… to load directly your JSON key file. For more information on how to extract your JSON file, refer to this page.
You can also enter manually the following details:
- Project Id
- Private Key
- Client Email
-
Click Test the connection to check that your configuration is correct and that the marketing server has access to the FCM.
CAUTION
For Mid-Sourcing Deployment, the Test connection button will not check if the MID server has access to the FCM server. -
As an option, you can enrich a push message content with some Application variables if needed. These are fully customizable and a part of the message payload sent to the mobile device.
-
Click Finish then Save. Your Android application is now ready to be used in Campaign Classic.
Below are the FCM payload names to further personalize your push notification: