Skip to content
Permalink
Browse files
Tweaking the geolocation plugin to contain all the permissions code. …
…Sadly, we have to do this.
  • Loading branch information
infil00p committed Oct 28, 2015
1 parent cc7e3cb commit 3f0c06368a02c0921e44562a60da7d3833f9926c
Showing 1 changed file with 11 additions and 1 deletion.
@@ -89,9 +89,19 @@ public boolean hasPermisssion() {
return false;
}
}

return true;
}

/*
* We override this so that we can access the permissions variable, which no longer exists in
* the parent class, since we can't initialize it reliably in the constructor!
*/

public void requestPermissions(int requestCode)
{
cordova.requestPermissions(this, requestCode, permissions);
}



}

0 comments on commit 3f0c063

Please sign in to comment.