Skip to content

Commit

Permalink
adding some debug info and a link from main doc to phonegap docs
Browse files Browse the repository at this point in the history
  • Loading branch information
andreassolberg committed Aug 1, 2012
1 parent c8f4f96 commit b679976
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README-Phonegap.md
Expand Up @@ -106,6 +106,8 @@ Now, setup your application index page. Here is a working example:
var deviceready = function() {
var debug = true;
/*
* Setup and install the ChildBrowser plugin to Phongap/Cordova.
*/
Expand Down Expand Up @@ -139,10 +141,12 @@ Now, setup your application index page. Here is a working example:
authorization: "https://www.facebook.com/dialog/oauth",
presenttoken: "qs"
}
});
}, {"debug": debug});
// For debugging purposes you can wipe existing cached tokens...
// jso_wipe();
// jso_dump displays a list of cached tokens using console.log if debugging is enabled.
jso_dump();
// Perform the protected OAuth calls.
Expand Down
4 changes: 4 additions & 0 deletions README.md
Expand Up @@ -13,6 +13,10 @@ Current status is that the library is not well tested, due to lack of known prov

Be aware of the cross-domain policy limitiations of browser. Check out CORS, JSONP, or consider proxying the requests from the browser through your own webserver.

If you want to use JSO together with Phonegap to support OAuth 2.0 in a hybrid web application, you may want to read the

* [JSO Phonegap Guide](README-Phonegap.md)


## Licence

Expand Down

0 comments on commit b679976

Please sign in to comment.