发生这种情况是因为 打盹模式 你可以在 fcm 中通过将来自后端的推送通知消息优先级设置为高消息优先级来克服这个问题,看看是 文档
this happens because of Doze Mode you can overcome this in fcm by setting the push notification message priority from backend side to be high message priority take a look at is documentation