Page 1 of 1

navigator.compass.getCurrentHeading not working

Posted: Sun Feb 09, 2014 11:20 pm
by sunil_rinku

I am trying touse compass with android.

When I open below url in Android Galaxy Note 2 browser. It does not load function with navigator.compass.getCurrentHeading.

http://appery.io/app/view/3f692975-80...

1) does it have to be .apk file to use compass with phonegap on adroid or android browser will be fine?
2) are there any special consideration for using phonegap with appery (although I am new to phonegap).


navigator.compass.getCurrentHeading not working

Posted: Mon Feb 10, 2014 12:01 am
by Illya Stepanov

Hello,

Yes to use/test PhoneGap the app needs to be installed on the device (.apk and .ipa depending on the device).

PhoneGap - it is like wrapper that takes your HTML/CSS/JS web app and makes it as a native app, also it makes possible to use native device features like camera, accelerometer, geolocation e.t.c.

More information you can find here:
:: http://docs.phonegap.com/en/3.0.0/ind...