In the past I mentioned an excellent set of beginner Phonegap tutorials, but one of the topics that was not covered was the compass. I came across a few examples, but there seemed to be issues with iOS devices.
So here’s a great iOS tested working compass example with a spinning face created with Cordova and jQuery Mobile that shows how easy it is to create an animated working compass.
Here’s a quick video showing this Phonegap compass example in action:
A really nice example on using the compass that works great.