z0ne
V2EX  ›  问与答

小程序的订阅消息推送能力,有已经获取内测资格的用户吗?比模板消息牛逼

  •  
  •   z0ne · Jan 29, 2019 · 2503 views
    This topic created in 2687 days ago, the information mentioned may be changed or developed.

    虽然我一直关注小程序推送这一块,但还是没能找到实际使用的案例。

    除了官方的小程序示例:

    目前官方文档暂未公开,也不知道什么时候才开放公测。

    不过简单分析了下小程序源码,发现前端是采用 open-type='subscribe'的方式来获取推送授权,然后就可以随时向用户下发消息了。

    源码地址: https://github.com/wechat-miniprogram/miniprogram-demo/blob/master/miniprogram/page/API/pages/subscribe-message/subscribe-message.wxml

    Supplement 1  ·  Jan 29, 2019

    写了个比较详细的代码分析文章:

    https://mp.weixin.qq.com/s/SQJlWfNd2D3Wzu3LUKCncg

    2 replies    2019-01-29 09:38:24 +08:00
    ilaipi
        1
    ilaipi  
       Jan 29, 2019
    这是要放开推送限制了吗
    z0ne
        2
    z0ne  
    OP
       Jan 29, 2019
    @ilaipi 看样子,是的!后边应该会越来越开放吧,这是好事
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5491 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 08:37 · PVG 16:37 · LAX 01:37 · JFK 04:37
    ♥ Do have faith in what you're doing.