关于公众号推送信息如何实现?

小程序 文章 2021-03-13 23:01 467 0 全屏看文

AI助手支持GPT4.0

关于公众号推送信息如何实现?How to push information on the official account?

关于公众号推送信息如何实现?

用户在小程序内申请预约,管理员审核通过后想通过公众号来给用户推送审核是否成功消息。目前找不到java后台的相关demo方法。。。

The user applies for an appointment in the small program. After the administrator passes the audit, he wants to push the audit to the user through the official account. At present, we can't find the relevant demo method of Java background...

回答:

Mr.YAO:

小程序“订阅消息”能力与你的需求类似,只不过会将消息发送至“服务通知”而非公众号。

请参考

https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/subscribe-message.html

神奇的桑桑😄😄😄:

1、这种情况需要考虑到如楼上两位所说的场景。

2、简单说说我的思路,仅供参考。

如果你想用公众号推送小程序的服务通知消息,那么你需要先有一个认证过的服务号,认证过的小程序,然后是你需要再去注册一个微信开放平台(https://open.weixin.qq.com)。接下来你需要考虑怎么引导用户在小程序中关注公众号(

小程序引导关注公众号可参考实现方案:

1、嵌套服务号文章链接内含公众号二维码

2、小程序加入关注公众号组件(offical-account)

3、支付后关注

4、客服消息通过消息对话框关注

公众号引导使用小程序

1、模版消息推送(个性化用户推送)

2、菜单栏点击跳转

————————————————————————————————————————————

但是目前技术方案中有一个需要解决的点,在于如何判断用户是否已关注公众号。请参考最新的文档说明https://developers.weixin.qq.com/community/develop/doc/000cacfa20ce88df04cb468bc52801?blockType=1

————————————————————————————————————————————

可以在公众号用户授权的时候调用一下用户信息接口,储存用户的unionid。同理在小程序中也是如是实现,然后对比,在两端做互通。

个人方案,仅供参考,希望对你有帮助。

青寒:

如果用户只是访问了小程序,没关注公众号怎么办

-EOF-

AI助手支持GPT4.0