android 小米推送
黄舟
黄舟 2017-04-17 15:01:14
0
2
2538

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

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

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

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(2)
大家讲道理

Redirect after receiving the notification.

伊谢尔伦

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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template