How To Push From Php To Android?

How to push to iphone / android phones via php

  • 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.

  • Answer:

    If you want to send the notifications yourself, you'll need to read up on sending push notifications to each platform. http://stackoverflow.com/q/1378671/643383 address sending notifications on Android. http://vxtindia.com/blog/push-notifications-for-your-iphone-app-with-php-and-ubuntu/ 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 http://urbanairship.com/resources/ instead.

David Zafrani at Stack Overflow Visit the source

Was this solution helpful to you?

Other answers

MДΓΓ БДLL

If you want to setup your own server for push notifications, you should take a look at http://www.easyapns.com/. It's a PHP library for push notifications which is very easy to set up and customize.

SimonBS

http://code.google.com/intl/ru-RU/android/c2dm/ is used to push notifications to Android devices. You can develop server part yourself or use existing service such as http://urbanairship.com/. It allows you to send pushes to both Android and iPhone but you'll have to pay for it.

Zzokk

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.