I have been looking this way for a long time.

I make a review of technologies and examples of the BEST frameworks:

  • PWA (SW),

  • WEB (IONIC 4.0),

  • TRANSPORTED TO NATIV (RN, NATIVESCRIPT, flutter, kivy, kotlin),

  • NATIVE (SWIFT, java).

For front-end JS there are:

React Native, Ionic, NativeScrpit .

And so, from theory to action.

REQUIREMENTS TO APPENDIX:

1) The worker opens the application in the morning and launches geolocation ( geofensing );

2) The application on the background monitors its movements;

3) At the end of the day, the worker cuts down the application and goes home.

Platform requirements: while Android only (but not the essence);

Found a turnkey solution on IONIC :

https://ionicframework.com/docs/native/background-geolocation/

And it seems to be good, I KNOW VUE JS and I can inject it into it, and all the more, a new version has recently been released and + delivered its STENCIL , i.e. you can do without apache CORDOVA (did not have experience with it, but it has negative reviews on the network - in particular, by performance).

BUT!!! It upsets the fact that it was like a webView , so it remains. I did not see normal applications from front-end vendors like me (large offices can afford to write on the native and do not really trust them, due to the fact that many inserts are made on the native).

There is also NativeScript-vue , which is ideally suited for the speed of my development on it (even the online designer wrote down + the result immediately on the mobile phone, in 5 minutes, without installing the software on the PC), but it upset that the work of geolocation in the background is a big question + not popular . I know that in all these frameworks there is a theme background tasks , but the question for advisers is who applied them in practice in conjunction with geolocation? ....

And ReactNative is the most popular - this is understandable, this is a reaction that I don’t know, but there is also no guarantee that it will work normally in the background (and, as I said above, major developers make many inserts on the native, which I cannot afford for now ).

Last week I began to look in the direction of DART FLUTTER , they say that he will cope with the task best of all from this list. And someone wrote that it would be necessary to write another nativ (for the background to work).

And all these ambiguities scare me to start studying something one ...

  • I also want to go straight to the future so that it is rolled abroad, but only react is being rolled, which I ignore so hard (because it is a competitor of VUE ).

Oh yes, there are still PWA (service workers), but since 2016, no browser has delivered geofencing , which is a pity ..

1 answer 1

Try to read more about this library for Flutter , it provides the possibility of background geolocation

They also have a demo app in Google Play.

  • This resource is not a link exchanger; the main link should be in the response body. Please correct the answer. - 0xdb
  • From transistorsoft I HAVE ALREADY seen implementation on all the above frameworks. The question was in practice - does anyone have any practical experience on any of the frameworks and how they behave in business, and not in theory. And, it MAY BE, there are some restrictions on the right of use, then the grandmother may then be asked ... On the website they had something indicated about the purchase, so their decision was pushed, and there were simply no others (for some reason) !!!! Monopoly ... - kostia7alania