gpt4 book ai didi

ios - 您可以发送不唤醒手机的 iOS 推送通知吗?

转载 作者:可可西里 更新时间:2023-11-01 05:52:17 24 4
gpt4 key购买 nike

我想知道是否可以将推送通知“提醒”到 iOS 设备,如果屏幕关闭则不会唤醒手机。

需要说明的是,我仍然希望通过另一种方法唤醒手机后,此通知会出现在锁定屏幕/通知下拉列表中。

最佳答案

是的,从 iOS 7 开始,您可以发送“无声”通知。

来自 iOS 7 release notes :

Apps supporting either the fetch or remote-notification background modes may be launched or moved from the suspended to background state at appropriate times. In the case of the fetch background mode, the system uses available information to determine the best time to launch or wake apps. For example, it does so when networking conditions are good or when the device is already awake. You can also send silent push notifications—that is, notifications that do not display alerts or otherwise disturb the user.

另见 Apple Push Notification Service文档,特别是通知负载部分,了解如何发送静默通知。

关于ios - 您可以发送不唤醒手机的 iOS 推送通知吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30059141/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com