PubNub Corona SDK Multiplayer Networking and Push Notifications API
Channel: Stephen Blum
Date: 2011-06-14

Notice first you will start by requiring the pubnub library which you will download from GitHub PubNub Repository: github.com/​pubnub/​pubnub-api/​tree/​master/​lua-corona

You can download the Hello World Example here: github.com/​pubnub/​pubnub-api/​tree/​master/​lua-corona/​example-hello-world

Make sure both pubnub.lua and Json.lua are in your application directory. These files allow you to communicate between players on their phones over 4G, 3G, Edge (2G), WiFi and more!

As a bonus, you may use your website and the JavaScript Push API to communicate with your phone. Get your JavaScript Push API for your website here: pubnub.com/​account

You will need to use your own account keys to ensure that your application or game continues to work outside of demo mode. You may find your Publish and Subscribe Keys here: pubnub.com/​account#api-keys

To learn more about the Corona Multiplayer SDK, visit developer.anscamobile.com/​code/​multiplayer-networking

Also visit pubnub.com to learn how to expand your gaming and application push notification abilities to the max.