Xiaomi does not receive notification when application is not running

前端 未结 4 1715
遇见更好的自我
遇见更好的自我 2020-11-29 04:24

I am working on an application where I am using Google Push Notification. Application receives notification when it is running in Xiaomi phone otherwise when it\'s killed it

4条回答
  •  隐瞒了意图╮
    2020-11-29 04:51

    As for my understanding once you clear apps or clear memory in Recent Apps menu, xiaomi (or MIUI rom) will force close all the services and memory related to that app similar to user going to settings and force stopping app ,

    This Link talks about the same issue, hence all the Broadcast receivers and Services will be ended unless started by the user again, so the notification wont be received,

    However you can try just enabling auto-start for your app permissions in settings and If it still doesn't work try creating service that restarts by itself and enable auto-start in the settings, AutoStart is very important in MIUI, untill its enabled all the notification or app activity will be force closed and will never start

提交回复
热议问题