使用 PushKit 实现静默通知后 Apple 拒绝 [英] Apple rejection after implementing silent notifications with PushKit

查看:12
本文介绍了使用 PushKit 实现静默通知后 Apple 拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们在Info.plist中添加了需要PushKit并启用VoIP的静默通知

We added silent notifications which require PushKit and enabling VoIP in the Info.plist

请参阅 Apple 的 PushKit 文档

现在我的应用被苹果拒绝了:

Now my app is rejected by Apple:

您的应用在 Info.plist 的 UIBackgroundModes 键中声明了对 VoIP 的支持,但不包括任何 IP 语音服务.请修改您的应用以添加 VoIP 功能或从 UIBackgroundModes 键中删除voip"设置.

Your app declares support for VoIP in the UIBackgroundModes key in your Info.plist, but does not include any Voice over IP services. Please revise your app to either add VoIP features or remove the "voip" setting from the UIBackgroundModes key.

  1. 该应用不是 VoIP,因此不需要 VoIP 功能.
  2. UIBackgroundModes 中删除 VoIP 会导致静默通知停止工作.
  1. The app is NOT a VoIP therefore it doesn't require VoIP features.
  2. Removing the VoIP from UIBackgroundModes causes the silent notifications to stop working.

有人知道我该怎么做吗?

Anyone know what I should do?

我可以添加什么 VoIP 功能(即使我不使用它,只是为了通过审核)?

What VoIP feature can I add (even if I dont use it, just to pass the review)?

我问过 Apple,但他们以相同的拒绝原因返回了自动生成的回复.

I asked Apple but they got back with an auto generated response with the same rejection reason.

推荐答案

您可能应该使用 iOS 服务扩展来解密消息.https://developer.apple.com/reference/usernotifications/unnotificationserviceextension

You should likely be using iOS Service Extensions to decrypt the message. https://developer.apple.com/reference/usernotifications/unnotificationserviceextension

您可以使用此扩展程序修改通知内容或下载与扩展程序相关的内容.例如,您可以使用扩展程序解密加密的数据块或下载与通知关联的图像.

You use this extension to modify the notification’s content or download content related to the extension. For example, you could use the extension to decrypt an encrypted data block or to download images associated with the notification.

您还可以在此 WWDC 演讲中了解有关其工作原理的更多信息.https://developer.apple.com/videos/play/wwdc2016/707/

You can also learn more about how this works at this WWDC talk. https://developer.apple.com/videos/play/wwdc2016/707/

实现 VoIP 功能来做到这一点是完全矫枉过正的.

Implementing VoIP features to do this is complete overkill.

这篇关于使用 PushKit 实现静默通知后 Apple 拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆