# Weixin Mini Program Subscribe to message
# Features Description
Messaging capabilities are an important component of Weixin Mini Program capabilities, and we provide developers with the ability to subscribe to messages in order to achieve a closed loop of services and a better experience.
Subscriber message push location: Service Notifications
Subscription message delivery conditions: The developer triggers the user to actively subscribe in some way
Subscribe to the message card jump ability: Click on the details to jump to the Weixin Mini Program page
# Message Classification
# New Version of One Time Subscription Messages Beta
The new version of one-time subscription messaging is the ability to send a message to a user without the user actively subscribing in a pop-up window. The user's subscription method is:
- When the user in the Weixin Mini Program to pay WeChat, developers can Weixin Pay order number as a code to the user to send service notification
- Developers can set the open-type value of the button component that triggers the service to live activity in Weixin Mini Program. When the user clicks on the button, the code is obtained. This code can then be used to send a service notification to the user.
This distribution method is defined by the platform and the developers choose the templates to access according to their business.
See the Subscription Message Access Beta Development Guide document.
# One-time subscription messages (the user subscribes via a pop-up window)
The one-time subscription message is used to solve the problem of notifying the subsequent service link after the user uses Weixin Mini Program.
After the developer calls the requestSubscribeMessage interface in Weixin Mini Program, the user will be shown a pop-up window, and the user can open the message switch that he wants to accept.After the user subscribes, the developer can send a corresponding service message at any time; Each message can be subscribed or unsubscribed individually.
See the Weixin Mini Program Subscription Message Development Guide document.
# Long Term Subscription Message (Users subscribe via pop-up)
One-time subscription messaging can meet most of the needs of Weixin Mini Program service scenarios, but there are scenarios in the offline public service that cannot be met with one-time messaging, such as flight delays, which require multiple message reminders based on the real-time flight dynamics.For ease of service, we offer long-term subscription messages, where a user subscribes once and developers can post multiple messages over a long period of time.
At present, the long-term subscription news is only open to offline public services such as government services, people's livelihood, healthcare, transportation, finance, and education, and will gradually support other offline public service businesses in the future.
See the Weixin Mini Program Subscription Message Development Guide document.
At the same time, long-term subscription messages support voice alerts and add alerts capabilities.
# Long term subscription to limited-frequency messaging
To meet some of the business scenario requirements between long-term subscriptions and one-time subscriptions, long-term-subscription messages are now divided into "unlimited" and "limited" types. Among them, the frequency limit type allows the developer to send a message to the user at a preset frequency (e.g. once daily, once monthly, etc.) after the user completes a subscription.
In particular, the frequency limit message introduces the concept of a "required field," which will serve as the core identity (code) for frequency verification. For example, if a user holds three insurance policies that expire that month (Policy 1, Policy 2, Policy 3), if the corresponding Policy Outstanding Alert message template is limited to once a month, When a developer enters the number of policy 1 and policy 2 respectively in the required field "Policy Number," a message can be triggered once each month (i.e. each policy can be triggering a message based on this template once a month).
Frequency-limited messages are developed in the same way as long-term subscription messages, and developers can access a common template library and select a message template that matches their Weixin Mini Program category.Currently, limited-frequency messages are limited to selected industries such as finance, and if developers have more template needs, they can submit feedback through industry interlocutors or to the WeChat open community.
# Device Subscription Message
A device subscription message is a special type of subscription message that is a long-term subscription message type and requires that the device be connected to and to be used.
Device subscription messages are used to send a message notification to the user when a device triggers some event that requires human intervention (e.g. a device failure, insufficient equipment supplies, etc.).
See the Device Subscription Messages documentation.