简体   繁体   English

华为:FCM仅在应用程序运行或手机充电时立即收到

[英]Huawei: FCM only received immediately when app is running or phone is charging

My Android app does not receive FCM push messages immediately, if the phone is on standby and not currently charging. 如果手机处于待机状态且当前未充电,则我的Android应用不会立即收到FCM推送消息。 I think I really set everything I could in the phone settings regarding energy saving... Is there something I can do in the app itself? 我想我真的可以在手机设置中设置有关节能的所有内容...应用程序本身可以做些什么吗?

It works on other manufacturers but on our Huawei it doesn't... 它适用于其他制造商,但不适用于我们的华为...

在此处输入图片说明

These phones tend to kill all background app. 这些手机往往会杀死所有后台应用程序。 I mean no sticly service and broadcast receivers as well. 我的意思是也没有服务和广播接收器。 Try whitelisting your app from battery settings. 尝试从电池设置中将您的应用列入白名单。 It will prevent your app from getting killed by system 它将防止您的应用被系统杀死

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM