in src/android/Geolocation.java [73:93]
public void onRequestPermissionResult(int requestCode, String[] permissions,
int[] grantResults) throws JSONException
{
PluginResult result;
//This is important if we're using Cordova without using Cordova, but we have the geolocation plugin installed
if(context != null) {
for (int i=0; i<grantResults.length; i++) {
int r = grantResults[i];
String p = permissions[i];
if (r == PackageManager.PERMISSION_DENIED && arrayContains(permissionsToCheck, p)) {
LOG.d(TAG, "Permission Denied!");
result = new PluginResult(PluginResult.Status.ILLEGAL_ACCESS_EXCEPTION);
context.sendPluginResult(result);
return;
}
}
result = new PluginResult(PluginResult.Status.OK);
context.sendPluginResult(result);
}
}