# Mini Program Subscription Message

# Function introduction

Messaging capabilities are an important component of Mini Programs' capabilities, and we provide subscription messaging capabilities for developers to close the loop on services and provide a better experience.

Subscribe to Message Push Location: Service Notifications

Subscription message issued conditions: developers through a certain way to trigger the user active subscription

Subscribe to the Message Card Jump Ability: Click View Details to jump to the page of the Mini Program

# Message classification

# New Version of One Time Subscription Messages Beta

The new one-time subscription message is a kind of ability that does not require the user to actively subscribe in the pop-up window to send messages to the user. The user's subscription method is:

  1. After the user makes Weixin Pay in the mini program, the developer can use the Weixin Pay order number as Code Service notifications to users
  2. In the Mini Program, the developer can set the button Component open-type The value of the LiveActivity, when the user clicks on the button Later available Code , Subsequent use of this Code Service notifications to users

This mode is defined by the platform template, developers according to their own business to select the template access.

See alsoSubscription Message Access Beta Development GuideDocumentation.

# One-time subscription messages (users subscribe via popup)

The one-time subscription message is used to solve the notification problem of the subsequent service link after the user uses the Mini Program.

The developer calls in the Mini Program requestSubscribeMessage Interface, a pop-up window is shown to the user, who can turn on the message switch that he or she wants to receive. After the user subscribes, the developer can issue a corresponding service message for unlimited timeEach message can be subscribed or unsubscribed separately.

See alsoMini Program Subscription Message Development GuideDocumentation.

# Long-term subscription messages (users subscribe via popup)

A one-time subscription message can meet the needs of most service scenarios of the Mini Program, but there are scenarios that cannot be met by a one-time subscription in the field of offline public services, such as flight delays, and multiple message reminders need to be sent according to the real-time dynamics of the flight. In order to facilitate the service, we provide a long-term subscription message, the user subscribes once, the developer can issue multiple messages for a long time.

At present, long-term subscription messages are only open to offline public services such as government affairs and people's livelihood, medical care, transportation, finance, and education, and will gradually support other offline public service businesses in the later period.

See alsoMini Program Subscription Message Development GuideDocumentation.

While long term subscription messaging support[Voice reminder](./subscribe-message.md#Subscribe to Message Voice Alerts)and[Add a reminder](./subscribe-message.md#Subscribe to a message Add a reminder)Ability.

# Device Subscription Message

A device subscription message is a special type of subscription message that belongs to the long-term subscription message type and requires completion of theDevice accessIn order to use it.

Device subscription messages are used to send message notifications to users when the device triggers certain events that require human intervention, such as device failure, device supplies running low, etc.

See alsoDevice Subscription MessageDocumentation.