How do I build a PubNub app using PhoneGap?

See the following examples:

You can also get the full PubNub PhoneGap SDK on Github.