Not receiving GCM notifications once app is killed on Xiaomi and Lenovo devices in Android
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Can anyone help me to receive notifications on Xiaomi and Lenovo devices even after the app is killed(no more in the background)? Edit 1 I added GCM broadcast receiver. Here is the code inside AndroidManifest.xml <receiver android:name="com.don.offers.broadcast_receiver.GcmBroadcastReceiver" android:permission="com.google.android.c2dm.permission.SEND" > <intent-filter> <!-- Receives the actual messages. --> <action android:name="com.google.android.c2dm.intent.RECEIVE" /> <category android:name="com.google.android.gcm.demo.app" /> </intent