SpringCloud工作笔记067---消息推送_推送视频_推送图片_在通知栏里显示图片视频_自定义点击消息后的动作

版权声明:本文为博主原创文章,未经博主credreamer 允许不得转载 违者追究法律责任。 https://blog.csdn.net/lidew521/article/details/84622382

 JAVA技术交流QQ群:170933152   

http://docs.getui.com/getui/server/java/template/

个推 ,这里有文档,看看就能搞,另外:

在hbuilder中,可以用下面的代码,可以实现把推送的消息,在app中接收到,然后比如点击事件,接收到消息后,

根据消息内容做具体操作

   plus.push.addEventListener("receive", function(msg) {
        //        constant.toast("11111");
        //        constant.toast(JSON.stringify(msg));
    });
    plus.push.addEventListener("click", function(msg) {
        plus.runtime.setBadgeNumber(0);
        //        constant.toast("22222");
        //        constant.toast(JSON.stringify(msg));
    });

猜你喜欢

转载自blog.csdn.net/lidew521/article/details/84622382