简体   繁体   English

当应用程序被杀死或在Mi 4i中强制停止时,android推送通知不起作用

[英]android push notification is not working when app Killed or force stop in Mi 4i

android push notification is not working when app Killed or force stop in Mi 4i I wrote code android firebase push notification is working fine in Moto g4 and Smsung S6 but its not working in Xaimoi Mi 4i when app is killed. 当应用程序被杀死或在Mi 4i中强制停止时,android推送通知不起作用我编写了代码android firebase推送通知在Moto g4和Smsung S6中工作正常,但在应用程序被杀死时在Xaimoi Mi 4i中不起作用。

I am sending data in format data payload for example: 我正在以数据有效负载格式发送数据,例如:

{
    "to":"firebase_id",
    "data":{
        "message":"push notification finally received",
        "title":"hello firebase"
    }
}

我怀疑是否有一个遮篷,如果整个应用程序被杀死(不仅关闭活动,服务也被杀死)-没有解决此问题的方法,但是在再次启动应用程序后它应该可以正常工作

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如果应用程序被杀死,则解析推送通知不起作用(Android) - Parse Push notification not working if app is killed (Android) 如果应用程序被杀,则不会在MI手机中收到GCM推送通知 - Not receiving GCM push notification in MI phone if app is killed 当 android 应用程序被杀死时,react-native-push-notification 自定义声音不起作用 - react-native-push-notification custom sound not working when android app is killed 应用程序被杀时,Android Firebase Push通知无效 - Android Firebase Push notification not working when application is killed 即使应用程序被杀死,如何向Android设备发送推送通知? - How to send push notification to android devices even when app is killed? 如果我们强制手动停止应用程序,推送通知将不起作用 - Push Notification not working if we force stop the app mannually 当 android 应用程序处于终止状态时,如何从推送通知(使用 FCM)中获取“数据有效负载”? - How can I get “data payload” from push notification (using FCM) when android app is in killed state? 即使应用程序被杀死也推送通知 - Push Notification even when app is killed 应用程序被终止时,设备未收到推送通知 - push notification not received to devices when app is killed 如何在MI 4i安全APP中以编程方式为我的应用启用自动启动选项? - How to programmatically enable Autostart option for my app in MI 4i security APP?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM