License sales launch: April 27, 2026 Get notified or view pricing

bglocation
Capacitor 8 · React Native · iOS · Android

Background Location That Just Works

Production-ready SDK for continuous GPS tracking on iOS and Android. Ship the same native location core through a Capacitor plugin or a React Native wrapper, with native HTTP posting, offline buffer, heartbeat timer, and geofencing built in.

Launching April 27, 2026 — install & try with trial mode today

Currently focused on Capacitor 8 + iOS + Android

npm install @bglocation/capacitor
License Sales Launch

April 27, 2026 — perpetual license keys go on sale. Install the plugin and try it today with trial mode.

300+

Unit Tests

2

Native Platforms

3,200+

Lines of Native Code

Source

Available (ELv2)

1.06:1

Test-to-Code Ratio

Everything You Need for Location Tracking

Built from scratch with Capacitor 8 native APIs. No wrappers, no legacy Cordova code — pure Kotlin and Swift.

Background GPS Tracking
Continuous location updates even when the app is in the background. CLLocationManager on iOS, FusedLocationProviderClient on Android.
Native HTTP Posting
Send locations directly from the native layer to your backend. No JavaScript wake-up needed.
Offline Buffer
SQLite-backed queue stores locations when offline. Automatic retry and FIFO flush when connectivity returns.
Heartbeat Timer
Periodic events even when stationary. Know your device is alive with configurable heartbeat intervals.
Adaptive Distance Filter
Auto-adjusts distance filter based on speed. Walk, bike, or drive — always optimal GPS usage and battery life.
Offline License Validation
RSA-2048 signed keys verified locally. No phone-home, no server dependency. Works fully offline.
SLC Fallback (iOS)
Significant Location Change watchdog auto-restarts GPS if iOS kills your app. Your tracking resumes silently.
Debug Mode
Verbose logs, onDebug events, optional system sounds. Dynamic Android notification with GPS counters.
Battery Optimization Detection
Detects OEM battery killers on Android with dontkillmyapp.com links. Warns when tracking may be interrupted.

Up and Running in Minutes

Install from npm, configure once, start tracking. The native core is the same. The wrapper adapts to Capacitor or React Native.

import { BackgroundLocation } from '@bglocation/capacitor';

// 1. Configure
await BackgroundLocation.configure({
  distanceFilter: 15,
  desiredAccuracy: 'high',
  heartbeatInterval: 15,
  http: {
    url: 'https://api.example.com/location',
    headers: { Authorization: 'Bearer <token>' },
    buffer: { maxSize: 1000 },
  },
});

// 2. Listen
BackgroundLocation.addListener('onLocation', (loc) => {
  console.log(loc.latitude, loc.longitude);
});

// 3. Start
await BackgroundLocation.start();

How We Compare

Compare the active wrapper against the closest built-in baseline for the same ecosystem.

Featurebglocationrecommended@capacitor/geolocation
Background GPS trackinglimited
Native HTTP posting
Offline buffer (SQLite)
Heartbeat timer
Adaptive distance filter
Capacitor 8 native
No Cordova legacy code
Battery optimization detection
Offline license (no phone-home)n/a
Source availableELv2MIT
Runs when app is killed
Geofencing
License typePerpetualn/a

@capacitor/geolocation is the official Capacitor plugin — solid for foreground location, but limited for persistent background tracking when the app is suspended or killed.

React Native Is Live

Follow The Next Wrapper Releases

Capacitor and React Native are supported today. Subscribe for release notes, launch offers, and roadmap updates for Flutter and Kotlin Multiplatform.

Ready to Ship Background Location?

Install and evaluate with trial mode — 30 min sessions, all features included. No license key needed to start.