ios - 我需要使用 FCM 实现静默通知

标签 ios iphone push-notification

我已经知道 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/

相关文章:

iphone - 自定义 UITableView 部分未在 iOS5 中加载

ios - 使用开发者证书重新注册Apple Store IPA

iphone - xCode中的调用方法

ios - 适用于单独 iPad 和 iPhone 应用程序的 Azure 通知中心配置

ios - 使用本地时区推送通知

ios - 确保节点可见

ios - 获取唯一对象数组

ios - 我如何实现一个 "dispatch_once"方法,不是针对多线程环境,而是在满足所有条件时只运行一次

iphone - 如何判断正在运行的场景是什么样的类/场景?

ios - APNS错误响应报文中不同状态码的含义