Feature Overview
Message capabilities are a key component of the Mini Program functionality. We provide developers with subscription message capabilities to facilitate service closed loops and enhance user experience.
Subscription message delivery location: Service Notifications
Subscription message delivery condition: Developers trigger users to actively subscribe through specific methods.
Subscription message card navigation capability: Clicking "View Details" navigates to the pages of this Mini Program.
Message Classification
New One-Time Subscription Messages Beta
The new one-time subscription message is a capability that allows developers to send messages to users without requiring them to actively subscribe via a popup. The subscription methods are as follows:
- After a user completes a WeChat Pay transaction in Mini Program, the developer can use the WeChat Pay order ID as the code to send a service notification to the user.
- The developer can set the
open-typevalue of the button component that triggers the service in Mini Program toliveActivity. When the user clicks the button, a code is obtained, which can then be used to send a service notification to the user.
This delivery method uses templates defined by the platform, allowing developers to select templates based on their specific business needs for integration.
For details, refer to the Subscription Messages Integration Beta Development Guide.
One-Time Subscription Messages (Subscribed via Pop-up)
One-time subscription messages are designed to address notification needs for subsequent service stages after a user utilizes a Mini Program.
When developers invoke the requestSubscribeMessage API within a Mini Program, a pop-up is displayed to the user, allowing them to toggle on the specific messages they wish to receive. After a user subscribes, developers can send one corresponding service message at any time without restriction. Each message can be subscribed to or unsubscribed from individually.
For more details, refer to the Mini Program Subscription Message Development Guide documentation.
Long-Term Subscription Messages (User Subscribes via Popup)
One-time subscription messages can meet the service scenario needs of most Mini Program s. However, in offline public service sectors, there are scenarios where one-time subscriptions cannot meet the requirements, such as flight delays, which require multiple message reminders based on real-time flight dynamics. To facilitate service delivery, we provide long-term subscription messages, allowing developers to send multiple messages over a long period after a user subscribes once.
Currently, long-term subscription messages are available only to offline public services in sectors such as government affairs, people's livelihood, healthcare, transportation, finance, and education. Support will gradually extend to other offline public service businesses in the future.
See the Mini Program Subscription Message Development Guide documentation for details.
Long-term subscription messages also support Voice Reminder and Add Reminder capabilities.
Long-term Subscription Frequency-Limited Messages
To meet business scenario requirements that fall between long-term subscriptions and one-time subscriptions, long-term subscription messages are now divided into two types: "Unlimited Frequency" and "Frequency-Limited". The Frequency-Limited type allows developers to send messages to users at a pre-defined frequency (e.g., once per day, once per month) after the user has completed a single subscription.
It is specifically noted that Frequency-Limited messages introduce the concept of "Required Fields". These fields serve as the core identifiers (code) for frequency validation. For example: If a user holds three insurance policies expiring in the current month (Policy 1, Policy 2, Policy 3), and the "Policy Expiration Reminder" message template has a frequency limit of once per month, developers can fill in the required field "Policy Number" with the numbers for Policy 1 and Policy 2, respectively, to trigger one message delivery for each (i.e., each policy can trigger one message delivery based on this template per month).
The development method for Frequency-Limited messages remains consistent with long-term subscription messages. Developers can access the Public Template Library and select message templates that match their Mini Program category. Currently, Frequency-Limited messages are only open to specified industries such as finance. If developers have additional template requirements, they may provide feedback through their industry contact person or submit a request via the WeChat Open Community.
Device Subscription Messages
Device subscription messages are a specific type of subscription message. They fall under the long-term subscription message category and require completing "Device Integration" to be enabled.
Device subscription messages are used to send notifications to users when a device triggers events that require human intervention (such as device failures or insufficient consumables).
See the Device Subscription Messages documentation for details.