MobPushReceiver: 消息监听接口(包含接收自定义消息、通知消息、通知栏点击事件、别名和标签变更操作等)
MobPush.addPushReceiver(MobPushReceiver receiver): 设置消息监听
MobPush.removePushReceiver(MobPushReceiver receiver): 移除消息监听
MobPush.stopPush(): 停止推送(停止后将不会收到推送消息,仅可通过restartPush重新打开)
MobPush.restartPush(): 重新打开推送服务
MobPush.isPushStopped(): 判断推送服务是否已经停止
MobPush.setSilenceTime(int startHour, int startMinute, int endHour, int endMinute): 设置通知静音时段(开始时间小时和分钟、结束时间小时和分钟)
MobPush.setCustomNotification(MobPushCustomNotification customNotification): 设置自定义通知样式
MobPush.getRegistrationId(MobPushCallback<String> callback):获取注册id(可与用户id绑定,实现向指定用户推送消息)
别名操作:(同时只能设置一个别名,可用来标识一个用户)
MobPush.setAlias(String alias):设置别名
MobPush.getA

本文详细介绍了MobPush的API用法,包括消息监听、推送开关控制、推送选项、别名与标签操作、本地通知及错误码说明。提供设置自定义通知、获取注册ID、设置别名和标签等功能,并探讨了通知点击后的多种处理方式,如通过URI跳转和扩展参数实现页面跳转。
最低0.47元/天 解锁文章
451

被折叠的 条评论
为什么被折叠?



