美文网首页三方
anroid 集成厂商推送,APP事件响应记录

anroid 集成厂商推送,APP事件响应记录

作者: 一个冬季 | 来源:发表于2020-01-08 17:22 被阅读0次
小米推送(SDK:3.7.2)

下面表格是在小米推送平台点击相应步骤,得到APP端事件的响应。我并不是所有的事件,我都关注,我只关注比较重要的事件

  • APP没有杀死
操作步骤 收到推送事件 点击推送事件 点击后是否重启APP
由应用客户端自定义 onNotificationMessageArrived onNotificationMessageClicked
打开应用 onNotificationMessageArrived
打开指定页面 onNotificationMessageArrived onNotificationMessageClicked
透传消息 onReceivePassThroughMessage

注意
打开指定页面的格式如下:intent:#Intent;component=包名/.YourActivity;end

  Intent intent = new Intent(this, SplashActivity.class);
  String uriString = intent.toUri(Intent.URI_INTENT_SCHEME);//获取到打开指定页面的uri
  • APP杀死
操作步骤 收到推送事件 点击推送事件 点击后是否重启APP
由应用客户端自定义
打开应用
打开指定页面
透传消息

注意
APP在被杀死的情况下,是无法在推送里面拿到数据的

激光推送(3.5.4)
  • APP没有杀死
操作步骤 收到推送事件 点击推送事件 点击后是否重启APP
打开应用 onNotifyMessageArrived onNotifyMessageOpened
打开指定页面 onNotifyMessageArrived onNotifyMessageOpened
自定义消息/透传消息 CustomMessage
  • APP杀死
    什么通知都没了
华为推送(3.0.3.301)
  • APP没有杀死
操作步骤 收到推送事件 点击推送事件 点击后是否重启APP
通知消息 onNewToken
通知透传消息 onMessageReceived
  • APP杀死
操作步骤 收到推送事件 点击推送事件 点击后是否重启APP
打开应用
通知透传消息
魅族推送(3.8.7)
  • APP没有杀死
操作步骤 收到推送事件 点击推送事件 点击后是否重启APP
通知消息 onNotificationArrived onNotificationClicked
  • APP杀死
操作步骤 收到推送事件 点击推送事件 点击后是否重启APP
通知消息

相关文章

网友评论

    本文标题:anroid 集成厂商推送,APP事件响应记录

    本文链接:https://www.haomeiwen.com/subject/qoghactx.html