I'm using Salesforce mobile push alongside with Firebase Messaging.
Since I'm building the notifications manually on FirebaseMessagingService, I'd like to know if there's a public method to track the opening events.
Thank you.
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It only takes a minute to sign up.
Sign up to join this communityThe Marketing Cloud Mobile Push SDKs support multiple push provider configurations. Take a look at the documentation for such https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/trouble-shooting/multiple-push-sdks.html
The piece of the puzzle that's going to be missing for you is the messageId
if you're trying to track messages sent via Firebase in our system.
The troubleshooting docs might be helpful too https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/trouble-shooting/trouble-shooting-push-setup.html
Additional Info (edits)
You can "wrap" your PendingIntent
that will collect analytics for the message, but this would require testing and validation on your part as this isn't a "recommended" approach (ref. https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/javadocs/7.2/com.salesforce.marketingcloud.notifications/-notification-manager/redirect-intent-for-analytics.html)
sdk.pushMessageManager.handleMessage(message)
. I build the notifications manually and I'd like to know how to track the openings of Marketing Cloud Mobile Push notifications manually like when these notifications are created using handleMessage(message)
method above. Thanks
Aug 10, 2020 at 20:11