Edit in GitHubLog an issue

Push templates setup - Android

This document outlines the steps required to configure your app to use default push templates provided by Adobe.

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 clipboard
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
}
}
}
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.