Skip to content

Instantly share code, notes, and snippets.

@domadev812
Forked from girliemac/config.2.xml
Last active November 15, 2017 21:05
Show Gist options
  • Select an option

  • Save domadev812/5a83391eb20b854308fd1bfb117c3966 to your computer and use it in GitHub Desktop.

Select an option

Save domadev812/5a83391eb20b854308fd1bfb117c3966 to your computer and use it in GitHub Desktop.
[Blog] Turning Your JavaScript Chat App Into Android and iOS App with PhoneGap
<?xml version='1.0' encoding='utf-8'?>
<widget id="com.pubnub.com" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>SimpleChat</name>
...
<platform name="ios">
<icon src="app-icon-ios.png" />
...
</platform>
<platform name="android">
...
</platform>
</widget>
<?xml version='1.0' encoding='utf-8'?>
<widget id="com.pubnub.com" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>SimpleChat</name>
...
<icon src="app-icon.png" />
</widget>
var app = {
initialize: function() ...
bindEvents: function() ...
onDeviceReady: function() {
// Your awesome chat app here ---
var channel = 'chat';
pubnub = new PubNub({
publishKey : 'demo',
subscribeKey : 'demo'
})
}
};
app.initialize();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment