您好,欢迎来到二三娱乐。
搜索
您的当前位置:首页Leancloud的消息推送

Leancloud的消息推送

来源:二三娱乐

Leancloud的消息推送:

首先要获取用户的设备信息:

其实leancloud的推送就分两块

1:查询

2:推送

AVQuery pushQuery = AVInstallation.getQuery();
//AVQuey 查询要推送的设备信息
pushQuery.whereEqualTo("channels", "public");

    //给查询到的设备推送信息
    AVPush push = new AVPush();
    push.setQuery(pushQuery);
    push.setMessage("Push to channel.");
    push.setPushToAndroid(true);
    push.sendInBackground(new SendCallback() {
        @Override
        public void done(AVException e) {
            if (e == null) {
    
            }   else {
    
            }
        }
    });

Copyright © 2019- yule263.com 版权所有 湘ICP备2023023988号-1

违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务