我可以使用苹果推送通知服务让我的应用程序做一些没有在iOS的7通知用户 [英] Can I use Apple Push Notification Service to have my app do something without notifying user in iOS 7

查看:109
本文介绍了我可以使用苹果推送通知服务让我的应用程序做一些没有在iOS的7通知用户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的算法希望以这种方式工作 -

My Algorithm wishes to work this way-

如果在我的服务器出现了一些所需的事件,然后我想数据少量发送到每个用户的我的应用程序(前台或后台)。但是,相反通知用户的我希望我的应用程序上做一些数据的计算和确认服务器。
记住用户必须不被通知。

If some desired event occurs at my server then I wish to send a small amount of data to every user my app (foreground or background). But, instead of notifying the user I wish my app to do some computation on data and acknowledge server. Remember user must not be notified.

推荐答案

您可以使用在推送通知数据内容可用键和应用:didReceiveRemoteNotification:fetchCompletionHandler:。可以认为它是一个黑客位,为您的使用情况,如果你尝试使用它太多,你会被苹果系统得到限制。

You can use the content-available key in the push notification data and application:didReceiveRemoteNotification:fetchCompletionHandler:. It could be considered a bit of a hack for your use case and if you try to use it too much you will get limited by Apples system.

这篇关于我可以使用苹果推送通知服务让我的应用程序做一些没有在iOS的7通知用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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