Transistor Software

Version 3 of the Background Geolocation SDK for Cordova, React Native and Flutter (v1) is a significant refactor of the SDK’s Android Service architecture.

The Foreground Service

In the past, when BackgroundGeolocation.start() was executed, the Android SDK would launch a foreground-service (along with its required persistent notification). The foreground-service would remain running with…

The Background Geolocation SDK for Cordova and React Native now supports syncing with Firebase (currently only Firestore). This new Firebase Adapter is implemented within a separate plugin (cordova-background-geolocation-firebase and react-native-background-geolocation-firebase).

Implementing the Firebase Adapter will disable the Background Geolocation SDK’s internal persistence and HTTP services and sync directly with Firebase.

On Android, when you terminate your app with the BackgroundGeolocation plugin configured with stopOnTerminate: false, your Javascript code is completely terminated — only the plugin’s native Android background service continues running. If you’ve configured the plugin with an url, its Android background Service will continue posting locations to your server.

The Background Geolocation SDK is now available for Flutter!

flutter_background_geolocation

If you haven’t yet checked out Flutter, I highly recommend it. After spending a month porting the Background Geolocation SDK, this is by far the best development experience yet. Hot-reloading is painless and the integrated test-harness is great. UI layout is quick and easy. Flutter feels really good to develop with.

Using the SDK in Flutter is very similar to the Cordova, React Native and NativeScript APIs

Transistor Software

Creator of Background Geolocation SDK. Professional plugin developers — geolocation specialists. https://www.transistorsoft.com

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store