- Platform Guides
- The Cordova Command-line Interface
- Command-Line Usage
- Privacy Guide
- Upgrading Guides
- Project Settings
- Plugin Development Guide
- Domain Whitelist Guide
- Embedding WebView
geolocationobject provides access to location data based on the device's GPS sensor or inferred from network signals.
Geolocation provides information about the device's location, such as
latitude and longitude. Common sources of location information include
Global Positioning System (GPS) and location inferred from network
signals such as IP address, RFID, WiFi and Bluetooth MAC addresses,
and GSM/CDMA cell IDs. There is no guarantee that the API returns the
device's actual location.
This API is based on the W3C Geolocation API Specification, and only executes on devices that don't already provide an implementation.
<plugin name="Geolocation" value="org.apache.cordova.GeoBroker" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" />
<plugin name="Geolocation" value="org.apache.cordova.geolocation.Geolocation" />
<rim:permissions> <rim:permit>read_geolocation</rim:permit> </rim:permissions>
<plugin name="Geolocation" value="CDVLocation" />
<Capabilities> <Capability Name="ID_CAP_LOCATION" /> </Capabilities>
Reference: Application Manifest for Windows Phone
No permissions are required.