Edit in GitHubLog an issue

Adobe Journey Optimizer API reference

extensionVersion

The extensionVersion API returns the library version.

Java

Syntax

Copied to your clipboard
public static String extensionVersion();

Example

Copied to your clipboard
Messaging.extensionVersion();

registerExtension

Java

Syntax

Copied to your clipboard
public static void registerExtension();

Example

Copied to your clipboard
Messaging.registerExtension();

handleNotificationResponse

The handleNotificationResponse function transmits the push notification interaction feedback.

Java

Syntax

Copied to your clipboard
public static void handleNotificationResponse(final Intent intent,
final boolean applicationOpened,
final String customActionId);
ParameterTypeDescription
intent
Intent
The intent contains information related to the messageId and the data.
applicationOpened
Boolean
Shows whether the application has been opened or not.
actionId
String
The ID of the custom action.

addPushTrackingDetails

The addPushTrackingDetails API is used to update a pending intent with important information, such as messageId and Customer Journey information.

Java

Syntax

Copied to your clipboard
public static boolean addPushTrackingDetails(final Intent intent,
final String messageId,
final Map<String, String> data)
ParameterTypeDescription
intent
Intent
The pending intent that needs to be updated so it can be used when the user interacts with the notification.
messageId
String
The message ID for the push notification.
data
Map<String, String>
The data of the remoteMessage.

This API returns a boolean, indicating whether the intent was updated with necessary information (messageId and Customer Journey data).

refreshInAppMessages

Calling refreshInAppMessages API will force the Messaging extension to get an updated definition of messages from the remote.

Copied to your clipboard
Messaging.refreshInAppMessages()
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.