Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I've read some docs about notifications and background work, but there is something I do not understand.

Yesterday, I upgraded to iOS 4.2, rebooted my phone many times, and did not launch any apps. Then this morning I received a push notification from PandoraBox to inform me that an app I've placed in favorite had its price changed.

I wonder how this app, that is not launched, not in background, that cannot know in advance when the price of an app in MY favorites will change, can alert me with a notification this way?

It HAS to run some methods, some code… But I understood that that is not possible. What did I miss?

share|improve this question

migrated from stackoverflow.com Feb 16 '11 at 15:08

This question came from our site for professional and enthusiast programmers.

1 Answer 1

up vote 7 down vote accepted

You must have launched PandoraBox before the reboot of your iPhone, right?

When you launch apps that send notifications, they keep the way to identify you and throw notifications to your phone.

So the answer to your question is : "the code is running on some PandoraBox machine, not on your iPhone".

share|improve this answer
1  
if you're a tech guy, this doc will help : developer.apple.com/library/ios/#documentation/… Especially the last arrow of this graphics : developer.apple.com/library/ios/documentation/… "The provider HAS your token" –  Dirty Henry Feb 16 '11 at 14:08

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.