O'Reilly logo

Appcelerator Titanium Smartphone App Development Cookbook - Second Edition by Jason Kneen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Testing push notifications using PHP and HTTP POST

In order for our server application to programmatically push notifications to a user or a group of users, you have to create a script that can push the notifications to the https://parse.com/ servers. This can be done by a variety of methods (via a desktop app, a .NET application, a web application, and so on), but for the purpose of this recipe, we will use PHP, which is simple, fast, and freely available.

How to do it…

First of all, we need to create the PHP script that will communicate with the Parse servers to send a push notification. There are plenty of free PHP/Apache hosting accounts available online for running the script, but if you don't have access to any, go to phpfiddle.org and use ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required