Ionic-android: how to get date and time by GPS? (not of the system)

1

The real problem that I still do not solve is how to prevent the app I am developing from saving me an hour that is not the official one of the country / town where I am

the timestamp that returns ionic-native / geolocation is the one in the system, so it does not work for me

I used the plugin cordova-plugin-advanced-geolocation that takes me back to the timestamp by gps but it freezes the app, and it only works for android 5.0 - 6.x

pd: the solution should work even without internet connection

Any help really I appreciate it!

    
asked by Alexandro Roca 13.12.2017 в 17:48
source

1 answer

0

The Google Maps API has the option to calculate the local time by sending the current location.

link

According to the information provided by Google, the local time can be obtained in the following way:

    
answered by 14.12.2017 в 15:47