Handling WeChat Mini Program Subscription Messages End-to-End
Start by choosing the desired message template from the WeChat public platform.
Invoking the subscription on the client
Use wx.requestSubscribeMessage to prompt the user for permission. Pass the template ID(s) in side tmplIds.
const templateIds = ['7UezzOrfJg_NIYdE1p*******']
wx.requestSubscribeMessage({
tmplIds: templateIds,
success(resp) ...
Posted on Fri, 22 May 2026 19:47:31 +0000 by kemper