PushKit:是否可以在不使用VoiP的情况下在聊天应用程序中使用Push kit(VoiP Push) [英] PushKit: Can we use push kit(VoiP Push) in Chat Application without using VoiP

查看:168
本文介绍了PushKit:是否可以在不使用VoiP的情况下在聊天应用程序中使用Push kit(VoiP Push)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当Push通知到来时,我想将本地数据库与服务器同步,但是我无法使用Silent Notification进行同步,因为当应用程序被用户杀死时,未调用application:didReceiveRemoteNotification:fetchCompletionHandler.因此,我不知道该怎么做,然后我阅读了有关推包的信息,但不知道是否可以使用没有VoiP功能的推包.请告诉我有可能吗? 如果没有,建议我其他任何想法,当应用程序被用户杀死时,我将如何运行后台任务?

I want to sync my local DB with server when Push notification came, but I am not able to do it with Silent Notification because application:didReceiveRemoteNotification:fetchCompletionHandler not called when app killed by user. So, I did not know how to do it, then I read about push kit but don't know is it possible to use push kit without VoiP feature. Please tell me is it possible or not?? If not, suggest me any other idea , how will I run background task when app killed by user??

推荐答案

根据我的经验以及其他有关SO的经验,您因尝试利用VOIP作为解决方法而被拒绝.请参阅下面的内容,了解苹果公司处理类似的

In my experience as well as others on SO - you get rejected for trying to leverage VOIP as a workaround. See below for actual response from apple dealing with a similar attempt.

2.16:多任务应用只能将后台服务用于其预期目的:VoIP,音频播放,位置,任务完成,本地通知等.

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

2.16我们发现您的应用程序使用后台模式,但不包含要求该模式持续运行的功能.此行为不符合《 App Store审查指南》.

2.16 We found that your app uses a background mode but does not include functionality that requires that mode to run persistently. This behavior is not in compliance with the App Store Review Guidelines.

我们注意到您的应用在Info.plist的UIBackgroundModes项中声明了对VoIP的支持,但未提供任何IP语音服务.

We noticed your app declares support for VoIP in the UIBackgroundModes key in your Info.plist but does not provide any Voice over IP services.

我们认识到VoIP可以提供许多应用程序功能都希望使用的保持活动"功能.但是,以这种方式使用VoIP并不是VoIP的预期目的,正如iOS应用程序编程指南中所述,VoIP的目的是:互联网协议语音(VoIP)应用程序允许用户使用Internet连接拨打电话而不是设备的蜂窝电话服务."

We recognize that VoIP can provide "keep alive" functionality that many app features would like to use. However, using VoIP in this manner is not the intended purpose of VoIP, which, as indicated in the iOS Application Programming Guide, is that: "A Voice over Internet Protocol (VoIP) application allows the user to make phone calls using an Internet connection instead of the device's cellular service."

这篇关于PushKit:是否可以在不使用VoiP的情况下在聊天应用程序中使用Push kit(VoiP Push)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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