English 中文(简体)
• 检索背景图像(PUSH)
原标题:iPhone - retrieve images in background (PUSH)
  • 时间:2010-08-01 06:58:29
  •  标签:
  • iphone

I would like to build an app which retrieves images from my server. My problem is that I want it to work in the background and only when there is a new image to load.

这似乎与我所需要的通知非常相似:

  • Work in the background
  • Only when there is something new to load.

I guess what I want became possible with the new iOS4. Please tell me if this is feasible. Any links for how to even start thinking about it would be great. Thanks.

最佳回答

它取决于你指的是什么背景。

如果你表示,你的申请正在运行,而且你有点读物,可以照相。

如果你表示你的申请被中止,你仍然希望使用PUSH通知并获得图像。 我担心这是不可能做到的。 在您提出申请时,其完成目前任务的时间非常有限。 届时,你的申请不能做任何事。

您在申请暂停时可以收到一些推动通知和当地通知,如全球定位系统、服务器通知,但只能收到服务器通知,不能下载新的形象。 这里是Devap文件的指示:

When the operating system delivers a local or push notification and the target application is not running in the foreground, it presents the notification (alert, icon badge number, sound). If there is a notification alert and the user taps the action button (or moves the action slider), the application launches and calls the UIApplicationDelegate method application:didFinishLaunchingWithOptions:, passing in the local-notification object or remote-notification payload. If the application is running in the foreground when the notification is delivered, the application:didReceiveRemoteNotification: or application:didReceiveLocalNotification: method of the application delegate is invoked.

rel=“nofollow noretinger”> 页: 1

问题回答

暂无回答




相关问题
Code sign Error

I have created a new iPhone application.I have two mach machines. I have created the certificate for running application in iPhone in one mac. Can I use the other mac for running the application in ...

ABPersonViewController Usage for displaying contact

Created a View based Project and added a contact to the AddressBook using ABAddressBookRef,ABRecordRef now i wanted to display the added contact ABPersonViewController is the method but how to use in ...

将音频Clips从Peter改为服务器

我不禁要问,那里是否有任何实例表明从Peit向服务器发送音响。 I m不关心电话或SIP风格的解决办法,只是一个简单的袖珍流程......

• 如何将搜查线重新定位?

我正试图把图像放在搜索条左边。 但是,问题始于这里,搜索条线不能重新布署。

热门标签