I am using FCM. When mobile screen is ON , Notifications received by all mobiles ( In my case , there is 12 mobiles ) When mobile is locked , Notification send by server successfully but not receive by mobile
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Add this Permission in manifest which prevents your phone from sleeping.
<uses-permission android:name="android.permission.WAKE_LOCK"/>
also check in latest device their is concept of protected apps only protected app will run in background only these apps will receive notification when device is locked
In protected apps located in Advanced settings->Battery manager->protected aps