For the first time, can I reply to different content in different cities?

Source: Internet
Author: User
Tags openid
After reading the document, it seems that it does not work. Please enlighten me. After reading the document, it seems that it does not work.
Please enlighten me.

Reply content:

After reading the document, it seems that it does not work.
Please enlighten me.

There is no good way. according to the user information, the city is very inaccurate. many users fill in the hometown information, not the current city information. The user's IP address is not pushed during event-related push.

Yes .. Follow the push to get user information, which contains the city, but also requires the user to fill in the information .... Another way is to report the geographical location to the user. However, if this is triggered when you cannot pay attention to it, the user may disagree.

Yes, but it is a little troublesome.

  1. When the system receives the pushed information in the background, it determines whether it is a user's concern.

  2. If the user follows the message, the user's openid is obtained based on the received information.

  3. Obtain user information from the server based on the openid

  4. Return different content based on the city field in the user information.

Note: To receive the message push, you must respond immediately within five seconds. If no response is received, multiple identical messages will be sent, causing repeated processing on your side.

When you are concerned, you can receive user information in the server background (how to obtain it? See the document) you can reply different content to the user based on the city in the user information.

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.