Hi, can anyone help me, howto get latitude and longitude to variable and save it to mysql database, I use cordova plugin and framework7. thanks before, cu
Use the cordova-plugin-geolocation plugin: https://www.npmjs.com/package/cordova-plugin-geolocation
As for storage, is your SQL server a remote database or are you saving it locally on the device? There are other plugins that can manage saving data locally to SQL Lite databases. If your database is on a backend server on the Internet, you’ll need to expose a RESTful API for your app to use.
2 Likes
amigo tengo un problema uso ese plugin pero cuando subo la app a celular no me muestra las coordenadas en el navegador funciona bien pero no lo hace en el celular ??
que puede ser
Are you running on iOS or Android?