Firebase (Notification Service)
SDK Implementation: Make sure that you’ve implemented the Firebase Cloud Messaging SDK according to the official documentation.
Method Swizzling: Pay attention and implement the first three paragraphs of the instruction. In case you disable method swizzling, the paragraph about disabled method swizzling is also mandatory.
Rich Notifications: Make sure that the app resolves images in push notifications.
Mixpanel (Integrate Analytics)
There are 2 ways to send a push_token to Mixpanel: via event + event_property, or via user_property:
[Recommended] User Property: Implement setting a user_property
push_tokenusing theidentifymethod.Mixpanel Sync: Implement sending the
push_tokenevent with a custom event propertypush_tokenin Mixpanel.
⚠️ IMPORTANT |
ℹ️ NOTE |
Mixpanel (User Email)
To track user email addresses and enable email-based features, you must use the $email reserved property. This property is used by Mixpanel to populate the user's profile and is required for sending emails through NGrow and Mixpanel.
Implementation Steps
Identify the User: Before setting any profile properties, ensure you have called identify with a unique user ID (e.g., your internal database ID).
Set the Email Property: Use the people.set method to assign the email address to the
$emailproperty.
Code Examples
Swift
// 1. Identify the user Mixpanel.mainInstance().identify(distinctId: "USER_ID")
// 2. Set the $email property Mixpanel.mainInstance().people.set(property: "$email", to: "[email protected]")
Objective-C
// 1. Identify the user [[Mixpanel sharedInstance] identify:@"USER_ID"];
// 2. Set the $email property [[Mixpanel sharedInstance].people set:@"$email" to:@"[email protected]"];
💡 TIP |