The goal of this guide is to set up:
basic push notifications handling via Firebase Cloud Messaging SDK
registration_id(push_token in Firebase Cloud Messaging system) to the Mixpanel system
Firebase (Notification Service)
Make sure that you’ve implemented Firebase Cloud Messaging SDK according to this instruction.
Pay your attention and implement the first three paragraphs of this part of the instruction (in case you disable the method swizzling, the paragraph about disabled method swizzling is also mandatory).
Make sure that the app resolves images in push notifications.
Mixpanel (Integrate Analytics)
Implement sending event in Mixpanel:
If using the Firebase Push SDK you need to send
The event can be sent using Firebase SDK token refresh monitoring.
Alternatively, you can independently check if the token has changed each time the application is launched, and send events if it has changed.
NOTE. In case you use Firebase Push SDK, make sure that you send Firebase
registration id(which is also referred to as
fcmTokenin code examples). Do not confuse it with the APNS push token. The one we need looks like this: