gpt4 book ai didi

ios - 杀死类似于 WhatsApp 的应用程序后实现通知

转载 作者:行者123 更新时间:2023-11-28 19:35:45 29 4
gpt4 key购买 nike

我们正在尝试实现类似于 WhatsApp(iOS 版本)通知处理的通知功能,即使在明确杀死 WhatsApp 之后 - 通知消息出现在带有消息计数的新消息的顶部聊天 - 这可以通过 VOIP 推送来实现。

想了解金融App是否可以使用VOIP,是否会导致App被拒。

最佳答案

您的应用将被拒绝,原因如下:

2.16: Multitasking apps may only use background services for their intended purposes: VoIP, audio playback, location, task completion, local notifications, etc.

We found that your app uses a background mode but does not include functionality that requires that mode to run persistently.

如果您打算使用 VOIP 推送,您的应用必须支持 VOIP。

请注意,如果您只想显示角标(Badge)计数而不显示通知,则可以通过静默通知来实现。

iOS 显示角标(Badge)计数与应用程序运行状态无关,即即使您的应用程序被明确终止,在收到静默通知时,角标(Badge)计数也会反射(reflect)出来。请注意,应用程序被杀死后不会被唤醒。

你的负载应该是,

{
"aps" :
{ "content-available" : 1
"badge" : 5
}
}

查看一些关于静默推送通知的好教程

https://blog.layer.com/how-we-leverage-ios-push-notifications/

https://www.raywenderlich.com/123862/push-notifications-tutorial

关于ios - 杀死类似于 WhatsApp 的应用程序后实现通知,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39122969/

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