Build

PubNub + jQTouch

1 min read Joe Hanson on May 10, 2010
Try PubNub Today

Free up to 1MM monthly messages. No credit card required.

Subscribe to our newsletter

By submitting this form, you are agreeing to our Terms and Conditions and Privacy Policy.

May 20th, 2010: This page reacts with multiple devices. An Orientation Event will trigger a push notification publish(). When one device changes Orientation, all devices with the opposite Orientation ...

PubNub JQTouch

May 20th, 2010: This page reacts with multiple devices. An Orientation Event will trigger a push notification publish(). When one device changes Orientation, all devices with the opposite Orientation will shift magenta! This requires at least one iPhone.

What is PubNub?

PubNub = communication between browser and mobile. Mobile to Mobile, Browser to Browser, Mobile to Browser. PubNub is a Push Service with a simple API. TWO FUNCTIONS: Publish() & Subscribe()

Learn about Publish() and Subscribe()

How does PubNub and jQTouch work together?

We combined jQTouch and PubNub to create a page that reacts to an Orientation Event. When this event fires, a Publish() push notification sends the Orientation Delta. Any listening device will receive this Orientation Delta and check if its own Orientation matches.

Thanks to jQTouch for the Orientation Event. This page was created with a few lines of JavaScript.

More from PubNub

Top Trends to Engage Your App Users
InsightsSep 27, 20224 min read

Top Trends to Engage Your App Users

Take a look at the top trends that are the most effective in attracting customers and reducing churn, and how you can incorporate...

PubNub Staff

PubNub Staff

Comparing Game Engines: Unity vs Unreal vs the Rest
Real-Time Gaming BlogSep 21, 20225 min read

Comparing Game Engines: Unity vs Unreal vs the Rest

Comparing the major game engines: Unity vs Unreal Engine vs Corona SDK vs GameMaker Studio, including the benefits and cons of...

PubNub Staff

PubNub Staff

Python Socket Programming: Client, Server and Peer Libraries
BuildSep 21, 20226 min read

Python Socket Programming: Client, Server and Peer Libraries

Sockets (aka socket programming) enable programs to send and receive data, bi-directionally, at any given moment. This tutorial...

PubNub Staff

PubNub Staff