Skip to content

Commit

Permalink
hello world
Browse files Browse the repository at this point in the history
  • Loading branch information
stevegraham committed Mar 27, 2012
1 parent 005adec commit 5824d64
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
4 changes: 4 additions & 0 deletions TwilioPhoneGapExample.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,8 @@
"\"$(SRCROOT)\"",
);
OTHER_LDFLAGS = (
"-ObjC",
"-all_load",
"-weak_framework",
UIKit,
"-weak_framework",
Expand Down Expand Up @@ -558,6 +560,8 @@
"\"$(SRCROOT)\"",
);
OTHER_LDFLAGS = (
"-ObjC",
"-all_load",
"-weak_framework",
UIKit,
"-weak_framework",
Expand Down
12 changes: 11 additions & 1 deletion www/application.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
document.addEventListener("touchmove", function(ev) { ev.preventDefault() }, false);

document.addEventListener("deviceready", onDeviceReady, false);
document.addEventListener("deviceready", function(ev) {

var tokenRequest = new XMLHttpRequest();
tokenRequest.onload = function() {
Twilio.Device.setup(tokenRequest.responseText);
Twilio.Device.connect({room: 'phonegap' })
};

tokenRequest.open('GET', 'http://yob.ro/token');
tokenRequest.send();
}, false);

0 comments on commit 5824d64

Please sign in to comment.