Push templates setup - Android
This document outlines the steps required to configure your app to use default push templates provided by Adobe.
Default push template functionality is available for use with the Adobe Campaign Classic extension.
This is supported by Android SDK version 3.1.0+.
Setup
Prerequisite
Follow the steps to configure Adobe Campaign Classic and add it to your app.
Implementation
In your application, call AEPMessagingService.handleRemoteMessage
from onMessageReceived
in the class implementing FirebaseMessagingService
.
Below is an example of where to call the API:
Copied to your clipboardpublic class MyFirebaseMessagingService extends FirebaseMessagingService {@Overridepublic void onMessageReceived(RemoteMessage remoteMessage) {if (AEPMessagingService.handleRemoteMessage(this, remoteMessage)) {// Campaign extension has handled the notification} else {// Handle notification from other sources}}}