Problems with cordova geolocation


Hi, I was working on an app that uses the Cordova geolocation plugin and geolocalization was working fine in both the browser and my android device but now I updated to Ionic 1.0.0 and Cordova 5.0.0 and geolocation works in browser but no on my device. I googled about it and found that it is related to cordova and the security settings so I installed the cordova whitelist plugin and added this to my config.xml on project root

<access origin="*" launch-external="yes"/>
<access origin="*" allow-intent="yes"/>

it also says that I should have:

<feature name="Geolocation">
    <param name="android-package" value="org.apache.cordova.geolocation.GeoBroker" />

inside android/res/config.xml and I don’t, all the others plugins I have installed are there except Geolocation and manually changing the file is useless cause cordova generates that file and if I change it cordova rewrites it back when I build the app. So I tried removing and adding the plugin and the entire android platform as well but every time Geolocation doesn’t work. I guess I’m missing some tag on the ionic root config.xml file to allow the plugin to work but I can’t find anything about it.