Wechat Mini Porgram Push Notification

1.7k Views Asked by At

Hi Recently I came to know about wechat mini program but as material is very less so I am unable to differentiate the official account and mini program.

I came to know that wechat mini doesnt have push notification but client wants to send the push notification from mini program.

The requirement is that mini program URL will be configured in official menu URL so when User will click to the link wechat will redirect to mini porgram when user clicks on any action then an API call should happen back to the offical program and send the push notification using union ID. Is my assumption right and is it possible?

2

There are 2 best solutions below

0
On

I think you maybe need the customer service message function,here is the article from the official sites: customer service message

1
On

If by "push notification", you mean sending template message to WeChat users. WeChat's mini-program does offer an API for that.

Here's an article on how to do it

And the other solution as you mentioned, using unionID to get user's official account openID to send a message would also work, but the process is way more complicated. Because currently, WeChat doesn't have a simple API that let you retrieve user's openID with unionID. Meaning you will have to store the relationship of unionID and openID by yourself.

Hope this helps. :D