Applet subscription message
- Mini Programs sometimes need to send messages to users, such as meal reminders, audit result notifications, etc. We can use the official free API of Mini Programs: Mini Program Subscription Messages .
- The common types of subscription messages for applets are one-time subscription messages and long-term subscription messages . These two main differences are:
- One-time subscription message : user
授权一次,只能发送一次消息
, if you want to send it again, you need to authorize it again - Long-term subscription news : Yes
授权一次,一直发送,没有次数限制
. (At present, long-term subscription news is only open to offline public services such as government affairs and people's livelihood, medical care, transportation, finance, and education)
- One-time subscription message : user
- Both of these have message templates. The optional range of templates depends on the category of the applet. Different categories have different templates .
Use detailed steps
This article mainly introduces the sending of one-time subscription messages , taking sending audit result notifications as an example
(because I don’t have a small program that can send long-term subscriptions to demonstrate hhh)