Mittwoch, 21. Mai 2014

How to access to GPS sensor of a Mobile Device in Cordova-Generated Application?

For this purpose we need a plugin from cordova. This plugin is called Cordova Geolocation Plugin and is described here.
                                                                 


Just with executing the following command in cordova CLI, this plugin will be added and it can be used in mobile applications generated with cordova:

cordova plugin add org.apache.cordova.geolocation

Update: Plugins in cordova must be added for every project

Keine Kommentare:

Kommentar veröffentlichen