MoEngageMessagingDelegate

@objc
public protocol MoEngageMessagingDelegate

An interface for processing various notification actions.

  • Callback received when device token is generated on successful Push registration

    Declaration

    Swift

    @objc
    optional func notificationRegistered(withDeviceToken deviceToken: String)

    Parameters

    deviceToken

    Identifier for the Apple Push Notification System

  • Callback received when notification is received.

    Declaration

    Swift

    @objc
    optional func notificationReceived(withPushPayload userInfo: [AnyHashable : Any])

    Parameters

    userInfo

    Dictionary that contains the entire push payload

  • Callback received when notification is clicked.

    Declaration

    Swift

    @objc
    optional func notificationClicked(withPushPayload userInfo: [AnyHashable : Any])

    Parameters

    userInfo

    Dictionary that contains the entire push payload

  • Callback received when notification is clicked.

    Declaration

    Swift

    @objc
    optional func notificationClicked(withScreenName screenName: String?, andKVPairs kvPairs: [AnyHashable : Any]?)

    Parameters

    screenName

    If the action type is Navigation then the screenName indicates the name of the screen to which navigation has to be performed

    kvPairs

    Custom key-value pairs entered while creating the campaign for the action.

  • Callback received when notification is clicked.

    Declaration

    Swift

    @objc
    optional func notificationClicked(withScreenName screenName: String?, kvPairs: [AnyHashable : Any]?, andPushPayload userInfo: [AnyHashable : Any])

    Parameters

    screenName

    If the action type is Navigation then the screenName indicates the name of the screen to which navigation has to be performed

    kvPairs

    Custom key-value pairs entered while creating the campaign for the action.

    userInfo

    Dictionary that contains the entire push payload