IntentProvider
PushMessageManager
PushMessagingService
DID THIS ARTICLE SOLVE YOUR ISSUE?
Let us know so we can improve!
Let us know so we can improve!
Package: com.salesforce.marketingcloud.pushfeature.push
Module: Push Feature Module v2.0.0
SDK: Salesforce Marketing Cloud Unified SDK 11.0.0
1open class IntentProvider(
2 context: Context,
3 message: NotificationMessage
4)A class that provides intent handling functionality for push notifications in the Salesforce Marketing Cloud SDK.
1constructor(
2 context: Context,
3 message: NotificationMessage
4)Parameters:
context: Android Context objectmessage: NotificationMessage containing push notification data1object CompanionCompanion object for the IntentProvider class.
1fun getActionPendingIntent(
2 actions: Array<Action>?,
3 analyticsType: String,
4 clickedId: String,
5 title: String?
6): PendingIntent?Creates a PendingIntent for notification actions.
Parameters:
actions: Array of Action objects defining notification actions (nullable)analyticsType: String identifying the analytics typeclickedId: String identifier for the clicked elementtitle: String title for the action (nullable)Returns:
PendingIntent?: A PendingIntent object or nullDescription: Generates a PendingIntent for the passed actions