推送通知 - 后台进程 - iPhone [英] push notification - background process - iPhone

查看:35
本文介绍了推送通知 - 后台进程 - iPhone的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚听说 - 推送通知"可以在 iPhone 中使用

I have just heard that - " push notification " is possible in iPhone

我需要以下详细信息.

  • 什么是推送通知?
  • 它是如何工作的?
  • 它需要什么?
  • 是否有任何示例代码链接可用?
  • 是否有任何文档链接(如果有)?
  • 来自StackOverFlow Masters"的一些关于制定上述要求的指导/技巧.

提前感谢您与 Stackoverflow 家族分享您的知识 &我.

Thanks in advance for sharing your knowledge with Stackoverflow family & me.

推荐答案

推送通知无法实现您希望进行的那种后台处理.

The sort of background processing you're looking to do is not possible with push notification.

推送通知允许您通知用户某事.例如,当用户在 Twitter 上收到直接消息时,Twitter 客户端会发送通知.

Push notification allows you to notify the user of something. An example would be a Twitter client that sends a notification when the user receives a direct message on Twitter.

当应用未运行时,推送通知无法对 iPhone 上发生的事情做出反应.相反,这取决于您是否拥有一台服务器来确定何时发送通知,然后再发送.

Push notification can not react to things happening on the iPhone when the app is not running. Instead, it depends on you having a server that determines when to send a notification and then sends one.

我认为您的应用程序不需要进行后台处理.如果您存储用户的初始位置,下次加载应用程序时,您可以获取他们的位置并计算两者之间的距离.如果您正在寻找路线,除非您像 Loopt 刚刚那样与 AT&T 达成交易.

I'm not seeing any need for background processing in your application. If you store the user's initial location, the next time the app loads you can get their location and calculate the distance between the two. If you're looking for the route travelled, you're out of luck unless you make a deal with AT&T like Loopt just did.

这篇关于推送通知 - 后台进程 - iPhone的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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