How can I use a php script to push to an iphone or android phone?
What I am thinking right now is to have a php script that will run every 15 minutes on a web server, check if case x is satisfied, if not push a notification to the phone.
How can this be accomplished if its even possible? If not what approach should I take to achieving this? Any links or break downs would be greatly appreciated.
If you want to send the notifications yourself, you’ll need to read up on sending push notifications to each platform. This SO question (and answer) address sending notifications on Android. This article is one of many in addition to Apple’s docs that explain the process for iOS. If you use a third party service like Urban Airship, you’ll need to look at that API instead.