本文介绍了在使用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:

  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

您还可以在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拒绝了的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-19 12:50