0

How can I track push notification events in Android, such as when a notification is received, tapped, or dismissed by the user?

I need a listener or method to monitor these events so I can send analytics.

Is there a built-in listener for this, or how can I implement it?

1 Answer 1

1

Push open tracking should happen automatically except in 2 situations: 1) you have not followed the implementation steps if you have more than 1 push provider in your application, or 2) you have overridden push notification handling and are displaying the notification yourself.

In the first case, there are docs. In the second case there is a helper method available, however, 99.999% of the time it's the first case.

8
  • i don't want automatic tracking, i want to track it separately as part of other tracking mechanism we have in our app, so for that i need to have something like listeners when those events happen like push received, push tapped, push declined Commented Jan 28 at 6:26
  • for 2 above, notification is displayed by sdk Commented Jan 28 at 7:33
  • You're going to have to override notification handling. The documentation pages discuss how to do this and there's a Learning Application linked in the docs which shows this too. Commented Jan 29 at 14:35
  • can you plz point to the doc and learning app ? thanks Commented Jan 30 at 5:06
  • developer.salesforce.com/docs/marketing/mobilepush/guide/… Commented Jan 30 at 13:52

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.