在iphone上推送与拉动通知 [英] Push vs. pull notification on iphone

查看:101
本文介绍了在iphone上推送与拉动通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

推送通知如何比iPhone上的拉动通知更好?

How are push notification better than pull notification on iPhones?

是否有任何链接有关于此的更多信息?

Are there any links with more information about this?

任何帮助都将不胜感激。

Any help would be appreciated.

推荐答案

如果您想了解推送通知,我猜你是对Apple推送通知服务感兴趣。

If you want to know about push notifications, I'm guessing you are interested in the Apple Push Notification Service.

你可以在这里阅读它的架构:

You can read about its architecture here:

http://developer.apple.com/iphone/library/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/ ApplePushService / ApplePushService.html

没有拉通知这样的东西,但使用APN可以为您提供以下优势:在应用程序中每隔一段时间手动轮询服务器,如果您有兴趣告诉用户零星的,不常见的事件,这通常会为您节省大量的电池寿命。使用推送通知还允许您在用户当前未运行您的应用时中断用户,这当然在某些用例中非常有用。

There is no such thing as a "pull" notification, but using APNs gives you the advantage that you don't have to manually poll a server every so often within an app, which usually saves you a lot of battery life in the long run if you are interested in telling the user about sporadic, infrequent events. Using push notifications also allows you to interrupt the user if they are not currently running your app, which of course can be very useful in certain use cases.

您应该考虑一下您期望在应用程序与系统中的任何服务器组件之间看到什么样的消息流。推送通知最适合应用程序外部的某些事件,这需要以某种方式更新应用程序,以及这些更新的频率较低或变化很大。

You should think about what kind of message flow you expect to see between your app and any server components in your system. Push notifications make the most sense where some event external to your app is going on which requires the app to be updated in some way, and where the frequency of those updates is low or highly variable.

这篇关于在iphone上推送与拉动通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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