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
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