Push Event Listener
Functions
Link copied to clipboard
public abstract void afterNotificationMessageArrived(Context context, PushType pushType, PushNotificationMessage notificationMessage)
接收到第三方推送平台的推送到达事件时的回调。 此时通知已由手机平台弹出,无法自定义。
Link copied to clipboard
获取 token 失败回调
Link copied to clipboard
获取 push token 上报服务器地址回调
Link copied to clipboard
public abstract boolean onNotificationMessageClicked(Context context, PushType pushType, PushNotificationMessage notificationMessage)
通知点击时的回调。
Link copied to clipboard
获取到最合适推送类型回调
Link copied to clipboard
使用 Push 2.
Link copied to clipboard
开始注册推送
Link copied to clipboard
sdk 即将上报推送 token 时回调此方法,用户可以通过此接口,调整推送注册顺序,sdk会根据调整顺序上报
Link copied to clipboard
第三方推送设置状态回调
Link copied to clipboard
收到 推送 token 回调
Link copied to clipboard
public abstract void onTokenReportResult(PushType reportType, int code, PushType finalType, String finalToken)
public void onTokenReportResult(PushType reportType, int code, PushType finalType, String finalToken, String message)
public void onTokenReportResult(PushType reportType, int code, PushType finalType, String finalToken, String message, Map<String, String> failMap)
token 上报回调
Link copied to clipboard
public abstract boolean preNotificationMessageArrived(Context context, PushType pushType, PushNotificationMessage notificationMessage)
通知显示之前的回调,用户可拦截此事件进行通知自定义显示。 融云默认推送、华为数据透传方式推送、 FCM 数据方式推送会回调此方法。