From fitness apps that track your running route to delivery apps that send automated dispatch messages on your food’s ETA, location services are empowering apps across all industries. Our Background Location native plugin takes your app to the next level by helping you seamlessly track the location of your users through real-time location updates, all while your app runs in the background. Because of the design of the iOS and Android platforms, and location services functionality, this powerful plugin can also be used to perform other background tasks such as data backup and server communication.
The plugin provides two modes of operation to run a regular background process based on elapsed time interval and location change distance. Your app can directly transmit data including location to a remote server API, all through native code. Or your app can invoke a JavaScript callback function that you can define to include any required functionality.
The Background Location plugin integrates seamlessly into your app, and handles the necessary permissions and configurations for both iOS and Android platforms. Don't let your app be limited by foreground execution and static location data. Boost engagement, optimize efficiency, and unlock the full potential of location-based features with Median’s Background Location native plugin.
Background execution and location tracking:
Track the real time location of your app users, perform data backups, or send data/location to a remote server even when your app is not active in the foreground.
No more missing location updates:
Ensure all location updates are received and processed as required, even when your app is backgrounded, with our exclusive JavaScript modifications.
Hassle-free compatibility and access:
The plugin handles all the necessary permissions and configurations on both iOS and Android platforms without any technical headaches.
The Median Background Location plugin uses built-in location services functionalities of iOS and Android devices to track the GPS provided location of your users. The background service runs on a regular basis according to time interval and location distance traveled. The plugin will POST all data to a remote server endpoint that you establish or it can invoke a JavaScript callback that you define.
iOS apps update the device status bar to indicate that they are using background location. This is a handy way for the user to return to the app by tapping the status bar. Android apps, on the other hand, are required to display a foreground notification when they are using background location. Within a Median-powered app this notification will include your app name.
You will need to add JavaScript to your website (or web application) to initialize and configure the Background Location Plugin. If you are using the plugin to send data to a remote server API, you will need to implement a server endpoint to receive the data based on the JSON format sent by the plugin as found in our documentation.
If you need help with the Background Location plugin, you can visit the Median documentation for the plugin. Fortunately we have sample code for both the JavaScript initialization and a NodeJS server endpoint running as a Firebase Cloud Function, and our expert team is available to help you through every step of implementation.