Hi Tim, I had a look at the official plugin at
https://github.com/apache/cordova-plugin-geolocation.
However I noticed that under Android there is no native part for the geolocation .... one would need to use a webcomponent in order to retrieve coordinates.
So I forked the plugin under
https://github.com/leopatras/cordova-plugin-geolocation and added some java code to do roughly the same what our built-in frontcall does.
The advantage to our built-in is that the cordova frontcall returns immediately and later on the cordovacallback action is triggered ->you retrieve the coordinates with the cordova getAllCallbackData frontcall.
This allows the Genero program to continue processing and being user responsive .
If you leave however the current dialog and switch to another one and still want to be able to get the cordova notifications you need to add the cordovacallback action as well in this new dialog.
For Linux/Mac the build of the plugin should be straightforward:
git clone https://github.com/leopatras/cordova-plugin-geolocation.git
cd cordova-plugin-geolocation/fgldemo/simple
make gma.build
make gma.install
On Windows one would need to add a .bat script or to use a bash (path separators probably need an update then)
On my Nokia 6.1 the first getGeolocation needs about 3 to 4 seconds, subsequent calls are faster (1-2 seconds).
Let us know if you are able to build the demo, it can be refined later on to use a RECORD for the return values , the plugin can be tuned to use parameters for the wanted accuracy etc.
Regards, Leo