-1

I'm implementing the Mobile PushSDK in a native android app with Firebase, I've managed to make the app receive notifications from Marketing Cloud.

However, it's not reporting any opens. Anyone seen this before?

2

If you have enabled analytics (correct link for Android docs http://salesforce-marketingcloud.github.io/JB4A-SDK-Android/features/analytics.html) and you're still not seeing opens; have you customized notification handling in your application? If so, did you wrap your PendingIntent such that the SDK can report analytics? See http://salesforce-marketingcloud.github.io/JB4A-SDK-Android/notifications/customize-notifications.html#simplified-customization

| improve this answer | |
  • You were right, I had customised notification handling. In my notification service (Android) I added this and it worked: if (PushMessageManager.isMarketingCloudPush(msg)) MarketingCloudSdk.requestSdk(sdk -> sdk.getPushMessageManager().handleMessage(msg)); – mercifulhop Mar 4 '19 at 3:04
  • 1
    You can also simply pass your PendingIntent and the NotificationMessage into our analytics helper: NotificationManager.redirectIntentForAnalytics(context, pendingIntent, notificationMessage, true) – Bill Mote Mar 4 '19 at 16:09
  • Hi @Bill, what's the difference between the two? the last argument seems to imply the redirectIntentForAnalaytics also creates a status bar notification? – mercifulhop Mar 12 '19 at 14:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.