A hidden page gets no GPS updates while Web Bluetooth can still deliver packets, so a
reception was stamped with the last position from before the page was hidden. Fixes now
carry their receive time; a hidden page only uses a fix up to 30 s old (receptions, RF
samples, pings). After a minute or more in the background while connected, Home says how
long and how many receptions were saved or not saved.
On Android 13+ the foreground service notification stays hidden until the
user allows notifications, and background-geolocation does not ask.
NativeGps.start now calls LocalNotifications.requestPermissions() before
addWatcher; a refusal or error does not stop capture.
Release v1.24.2, SW cache coredrive-rx-v62.
Step 1 of a native Android app (issue #13). The Android WebView has no Web
Bluetooth, so CapacitorBleTransport (src/transport-native.js) implements
the WebBluetoothTransport API on @capacitor-community/bluetooth-le: NUS
service, notify to every onFrame listener, serialised writes, reconnect
with backoff. The plugin requests a 512-byte MTU on connect (Device.kt).
NativeGps (src/gps-native.js) uses @capacitor-community/background-
geolocation with a backgroundMessage, which runs a foreground service, so
fixes should keep coming with the screen off. That is the point of the
native app; it is not verified on a device yet.
src/platform.js picks one or the other via Capacitor.isNativePlatform().
In the browser nothing changes in behaviour; the web bundle grows by
about 21 kB (512 kB, was 490 kB) because the plugin JS is now imported.
The service worker is not registered in the native app, and the Web
Bluetooth notice is not shown there.
Tests: 9 new in test/native.test.mjs with injected plugin fakes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>