Push templates setup - Android
This document outlines the steps required to configure your app to use default push templates provided by Adobe.
data-variant=info
data-slots=text
Default push template functionality is available for use with the Adobe Campaign Classic extension. <br /><br />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:
public class MyFirebaseMessagingService extends FirebaseMessagingService {
@Override
public void onMessageReceived(RemoteMessage remoteMessage) {
if (AEPMessagingService.handleRemoteMessage(this, remoteMessage)) {
// Campaign extension has handled the notification
} else {
// Handle notification from other sources
}
}
}