在使用PushKit实现无提示通知后,Apple拒绝了 [英] Apple rejection after implementing silent notifications with PushKit

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

问题描述

我们添加了静默通知,该通知要求使用PushKit并在Info.plist中启用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)?

我问苹果公司,但他们以相同的拒绝原因返回了自动生成的响应.

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功能来实现这一点完全是矫kill过正.

Implementing VoIP features to do this is complete overkill.

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

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