Can I get a phonegap application running on iOS 4 to have a background service when it's not the active app (e.g. check a url every hour and alert the user if there have been any changes)?
And if so, how?
Can I get a phonegap application running on iOS 4 to have a background service when it's not the active app (e.g. check a url every hour and alert the user if there have been any changes)?
And if so, how?
Yes, you can do that, but Apple will probably disallow it. Background running is bound to VERY specific rules. For this kind of stuff Apple invented Push Notifications (from server).
You can read the developer documentation about that.
tutorial for Push Notifications and PhoneGap
http://help.urbanairship.com/faqs/push-notifications/phonegap-push