Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

WeChat program messages and subscription messages


May 18, 2021 WeChat Mini Program Development Document


Table of contents


The small program subscribes to the message

An introduction to the features

Messaging capabilities are an important component of small program capabilities, and we provide developers with the ability to subscribe to messages in order to implement a closed-loop service and a better experience.

  • Subscription message push location: Service notifications
  • Subscription message release condition: The user subscribes autonomously
  • Subscribe to message card jump capabilities: Click to see the details to jump to the page of the small program

WeChat program messages and subscription messages

Instructions for use

Step 1: Get the template ID

Manually configure the Get Template ID on WeChat Public Platform: Log in to https://mp.weixin.qq.com to get the template, and if you don't have the right template, you can request to add a new template that you can use after approval.

WeChat program messages and subscription messages

Step 2: Get the permission to issue

See the small terminal message subscription interface wx.requestSubscribeMessage

Step 3: Call the interface to issue a subscription message

See the service-side messaging interface subscribeMessage.send