RichPushHandler
public protocol RichPushHandler : AnyObject
Handler of Rich Push Notification Quick Actions
-
Handles
RichPushAction.likePost
Declaration
Swift
func handleLikePost(userInfo: [String : Any], completionHandler: @escaping () -> Void)
-
Handles
RichPushAction.commentPost
Declaration
Swift
func handleCommentPost(userInfo: [String : Any], text: String, completionHandler: @escaping () -> Void)
-
Handles
RichPushAction.openChallenge
Declaration
Swift
func handleOpenChallenge(userInfo: [String : Any], completionHandler: @escaping () -> Void)
-
Handles
RichPushAction.openOfferLink
Declaration
Swift
func handleOpenOfferLink(userInfo: [String : Any], completionHandler: @escaping () -> Void)
-
Handles
RichPushAction.openCoupon
Declaration
Swift
func handleOpenCoupon(userInfo: [String : Any], completionHandler: @escaping () -> Void)
-
Handles
RichPushAction.openCertificate
Declaration
Swift
func handleOpenCertificate(userInfo: [String : Any], completionHandler: @escaping () -> Void)
-
Handles
RichPushAction.clipOffer
Declaration
Swift
func handleClipOffer(userInfo: [String : Any], completionHandler: @escaping () -> Void)
-
Handles
RichPushAction.favoriteEvent
Declaration
Swift
func handleFavoriteEvent(userInfo: [String : Any], completionHandler: @escaping () -> Void)
-
Handles
RichPushAction.openContentPage
Declaration
Swift
func handleOpenContentPage(userInfo: [String : Any], completionHandler: @escaping () -> Void)
-
Shows Challenge Responder on your application
Declaration
Swift
func showChallengeResponder(_ challenge: Challenge)
-
Shows Offer Response Detail on your application
Declaration
Swift
func showOfferResponseDetail(_ response: Offer.ResponseInfo)
-
Shows a single message on your application
Declaration
Swift
func showMessage(_ message: String)
-
Handles
RichPushAction
Declaration
Swift
func handleRichPushResponse(actionIdentifier: String, notificationType: NotificationType, text: String?, userInfo: [String: Any], completionHandler: @escaping () -> Void)
Parameters
actionIdentifier
RichPushAction
identifiernotificationType
text
User’s input if response is
UNTextInputNotificationResponse
userInfo
The whole push notification payload
completionHandler
Completion block that should always be called