Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Ionic_Calculating Distance Between Users

Miroslav Smukov edited this page Dec 21, 2016 · 3 revisions

Issues

In browser everything worked fine, but on a device I got the error Illegal Access when Geolocation plugin was trying to access the device's location.

I fixed it by adding the below code to plugins/android.json file:

{
    "xml": "<feature name=\"Geolocation\"><param name=\"android-package\" value=\"org.apache.cordova.geolocation.Geolocation\" /></feature>",
    "count": 1
}

I found this info in plugins\cordova-plugin-geolocation\plugin.xml file.

This means that my plugin add CLI code is still broken and is not properly updating android.json file. At least it added the permissions to AndroidManifest.xml and copied over to Android project the required code for the plugin.

Commits

Resouces

Clone this wiki locally