MoEngageLogNotificationTask
@objc(MoEngageLogNotificationTask)
public final class MoEngageLogNotificationTask : MoEngageBaseTask, MoEngageTaskProtocol
Typed task returned by the notification-impression-logging methods on
MoEngageSDKMessaging — logNotificationReceived(withPayload:) /
logNotificationClicked(withPayload:) / logNotificationClicked(withResponse:).
Carries a MoEngageNotificationTrackingResult on success after the impression
is accepted into the local batch storage. For
logNotificationReceived(withPayload:) only, returns
onFailure(.duplicateImpression) when the same impression payload was
already tracked in a prior call.
Customers identify which event was tracked from the method they called —
there is no kind discriminator on the Result.
-
Declaration
Swift
public typealias Success = MoEngageNotificationTrackingResult -
Declaration
Swift
public typealias Failure = MoEngageRequestFailure