Created
March 14, 2012 13:36
-
-
Save ghtomcat/2036528 to your computer and use it in GitHub Desktop.
How to call the Compass API in Phonegap webOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function displayCurrentHeading() { | |
function successful(response) { | |
navigator.notification.showBanner('current heading: '+response); | |
} | |
var request=navigator.compass.getCurrentHeading(successful,{}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment