Vi. sending mail and push notifications
Select the checkbox in front of the user, click the Send A Notification button, and select email Message/push notifiaction from the drop-down list to send the message or Push notification to the user.
In the body of the message, you can use some special tags, such as:
Referer=e130492539f33a87c77a352a1ca9&x=.jpg "/>
{{${name}}} represents the name attribute in the user profile.
Click Continue. Agree that you choose to send the timing, or specify the time to send:
Referer=94615074f0deb48fa27e94eee11b&x=.jpg "/>
Note that there is no time in the time zone selection and you can choose Shanghai time.
Select Now. Then send this message and the message will be sent immediately.
In addition, another way to send notifications is to send them in notifications. Such a way can dispatch the time period of the transmission.
Suppose you want to send a PUSH notification to a user. You need to collect device tokens from user devices in your application and send them to Mixpanel using Addpushdevicetoken:
-(void) Application: (UIApplication *) Applicationdidregisterforremotenotificationswithdevicetoken: (NSData *) Devicetoken {
Mixpanel *mixpanel = [Mixpanel sharedinstance];
[mixpanelidentify:@ "Kmyhy"];
[Mixpanel.people Addpushdevicetoken:devicetoken];
}
Assuming you do this, you will see the user's device token (that is, the IOS Devices attribute) in the user's profile:
You will then be able to send a PUSH notification to that user.
Mixpanel's message writing interface is quite interesting, it shows an iphone lock screen when you receive a PUSH notification of the picture, to edit the message content, directly in the interface of the message content can be edited, for example, as seen in:
Referer=3d6a486040a98226e1d61e177e0f&x=.jpg "/>
It is important to note that the edit message interface does not directly add the beep, you must provide the Payload in custom data, Mixpanel will merge the custom data into the editing results:
For example, Payload will play the default beep code at the same time that the user receives the message and a logo that displays a number 1:
{"APS": {"sound": "Default", "badge": 1}}
Mixpanel Experiment Course (2)