search

Home  >  Q&A  >  body text

android 小米推送

有谁用过小米来实现android 推送的,目前是新手,第一次接入小米推送,现在在使用小米推送工具的时候,推送消息客户端能得到通知信息,但是现在我遇到的问题时是:
使用推送工具推送的时候,其中一栏如下:

如何实现这个由应用客户端自定义,通知来了点击无反应,如果选择打开应用

通知到来,点击通知时,如果应用已经开启,它会创建两个应用,简单的说就是按back退出会有两次应用退出。。
我原来使用过notification 中有一个setContentIntent 可以设置用户点击跳转到指定界面,但小米的推送 不知如何操作这类事件。。

黄舟黄舟2772 days ago2534

reply all(2)I'll reply

  • 大家讲道理

    大家讲道理2017-04-17 15:03:14

    Redirect after receiving the notification.

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-04-17 15:03:14

    Two applications are created because another activity instance is created. You may need to set the startup mode of the activity to singletask so that it will not be started repeatedly.

    ps, is Xiaomi Push easy to use? I've been tinkering with Tencent's pigeon push recently, but I still can't receive push information. I read the documentation for a long time and still don't understand what the problem is.

    reply
    0
  • Cancelreply