Adobe Campaign Classic - push templates
Push template functionality is only available in Adobe Campaign Classic Android SDK version 2.1.0 through the next major version release.
This document outlines out of the box push templates supported in Adobe Campaign Classic extension.
Template Name | Availability | Description |
---|---|---|
Android - v2.1.0+ iOS - coming soon | A basic push notification template. Allows setting a title, message body, and optional image, action buttons, and click-through URL. Also supports a "remind me later" functionality which will schedule the notification to be re-delivered at a later time. | |
Android - v2.1.0+ iOS - coming soon | Shows a series of three (3) to five (5) images that scroll on and off the side of the notification. Available in manual mode (user must click a button to scroll carousel items) and auto mode (carousel items scroll every five seconds). |
Setup
In order for the SDK to handle these push templates, the application must call AEPMessagingService.handleRemoteMessage
from onMessageReceived
in the class implementing FirebaseMessagingService
.
Below is an example of where to call the new 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}}}