Basically what I want to do is have a server which does the following:
- Query an RSS feed for updates every # minutes
- If there are updates, send a push notification to my iOS app
All of the tutorials I have read for implementing Apple’s Push Notification service use a PHP script server-side. How can I adapt this to have a continuously running process?
Note: I have done very little server work, so it would be appreciated if explanations are given for any answers.
Why do you need a continuously running process? You could use a Crontab for querying the RSS feed and invoke the “are there any updates -> send push notification”-script on completion.
Are you relying on PHP or which technology do you intend to use for your server side?
// edit: You don’t have to stick to PHP, e.g. I’m running a Tomcat server (Java). For sending APNS, I’m making use of the third party library javapns.