Implement a phonegap compass script
Hi!
I found the perfect solution for my project in an stackoverflow topic.
It is a phonegap compass script/plugin. Here is the script: http://stackoverflow.com/a/13780468
The problem is that I have a hard time trying to implement this script. I have tried all several ways, but it just doesnt work. It only shows the body html with no data from the compass.
First, I tried to implement the whole script in a html component. Didnt work.
Then, I tried to implement only the body section in the html component, and upload the js and css files in the assets (Create new button). And run the the javascript in the javascript api on DeviceReady event. Didnt work.
What am I doing wrong?
Would be very grateful for a step by step tutorial.
ps. I tried the app on an android device.