我已经知道 content_available = true
用于执行此操作。
但我的问题是,当应用程序处于前台和后台但未进入终止状态时,我收到无声通知
任何人都可以帮助我解决这个问题,为什么我在应用程序未运行时没有得到。
谢谢。
最佳答案
如果应用程序已终止,则无法从该状态重新启动应用程序。来自 the docs :
However, the system does not automatically launch your app if the user has force-quit it. In that situation, the user must relaunch your app or restart the device before the system attempts to launch your app automatically again.
关于ios - 我需要使用 FCM 实现静默通知,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43350262/