Onsen and GPS coordinates
-
Hello, I haven’t tried Onsen yet but really want to. But before diging in I want to ask IF there is an opportunity to collect device’s coordinates offline, write them to local storage and since wifi or 4g is on - write to server and delete from local storage?
-
That’s something that is outside the scope of Onsen UI but also not necessarily prohibited by Onsen UI.
Onsen is a set of web components that are for designing the look of your app (and also associated UI behaviour like showing alerts and that kind of thing).
For communicating with a server or anything like that, you would need to write the JavaScript to do it yourself. It might also depend on if you’re using a platform like Cordova or Ionic.
-
@gecas, you need to use https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-geolocation/ plugin