Mixpanel Experiment Course (2)

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.