Message
class contains the definition of an in-app message and controls its tracking via Experience Edge events.Message
objects are only created by the AEPMessaging extension, and passed as the message
parameter in MessagingDelegate
protocol methods.Message
. This value matches the Message Execution ID assigned by Adobe Journey Optimizer (AJO) Campaign.true
(default), Experience Edge events will automatically be generated when this Message
is triggered, displayed, and dismissed.WKWebView
(iOS) or WebView
(Android) instance, if it exists.AEPServices
) that the message should be shown.autoTrack
is true, calling this method will result in an "inapp.trigger" Edge Event being dispatched.autoTrack
is true, calling this method will result in an "inapp.dismiss" Edge Event being dispatched.true
, the "inapp.dismiss" Edge Event will not be sent regardless of the autoTrack
setting.true
, the "inapp.dismiss" Edge Event will not be sent regardless of the autoTrack
setting.interaction
and eventType
.String
value to be recorded in the interactionString
value to be recorded in the interactionWKWebView
.handler
will contain the body of the message passed from the WKWebView
's JavaScript.handleJavascriptMessage
, read Call native code from the Javascript of an in-app message.handler
callback
toString
method for each case, which are used as the XDM eventType
in outgoing experience events:inapp.dismiss
inapp.interact
inapp.trigger
inapp.display
pushTracking.applicationOpened
pushTracking.customAction
inapp.dismiss
inapp.interact
inapp.trigger
inapp.display
pushTracking.applicationOpened
pushTracking.customAction