Skip to content

[Bug]: Plugin did not start #1480

@frank-trackjack

Description

@frank-trackjack

Required Reading

  • Confirmed

Plugin Version

4.17.6

Cordova platform

ios 7.1.1

Cordova plugins

cordova-background-geolocation-lt 4.17.6 "BackgroundGeolocation"
cordova-plugin-app-version 0.1.14 "AppVersion"
cordova-plugin-background-fetch 7.2.4 "CDVBackgroundFetch"
cordova-plugin-device 3.0.0 "Device"
cordova-plugin-device-motion 2.0.1 "Device Motion"
cordova-plugin-device-orientation 3.0.0 "Device Orientation"
cordova-plugin-inappbrowser 6.0.0 "InAppBrowser"
cordova-plugin-insomnia 4.3.0 "Insomnia (prevent screen sleep)"
cordova-plugin-local-notification-12 0.1.4 "LocalNotification"
cordova-plugin-network-information 3.0.0 "Network Information"
cordova-plugin-wkwebview-engine 1.2.2 "Cordova WKWebView Engine"
cordova-sqlite-storage 6.1.0 "Cordova SQLite storage plugin - cordova-sqlite-storage plugin version"

Mobile operating-system(s)

  • iOS
  • Android

Device Manufacturer(s) and Model(s)

iPhone 16

Device operating-systems(s)

ios 18.6

What happened?

The plugin works very well and always starts automatically. However, there is now one case of a user where the app did not start automatically. He started driving around 9:45, but the plugin only activated at 10:01.

Plugin Code and/or Config

bgGeo.ready({
        debug: false,
        logLevel: bgGeo.LOG_LEVEL_VERBOSE,
        disableElasticity: true,
        elasticityMultiplier: 1,
        stopOnStationary: false,
        stationaryRadius: 10,
        showsBackgroundLocationIndicator: true,
        autoSync: false,
        stopOnTerminate: false,
        stopTimeout: 5,
        startOnBoot: true,
        preventSuspend: true,
        foregroundService: true,
        enableHeadless: true,
        allowIdenticalLocations: true,
        heartbeatInterval: 60,
        desiredAccuracy: bgGeo.DESIRED_ACCURACY_HIGH,
        distanceFilter: 10,
        locationUpdateInterval: 1000,
        fastestLocationUpdateInterval: 3000,
    }

Relevant log output

2025-08-12 21:40:52.199 ℹ️+[LocationAuthorization run:onCancel:] status: 3

2025-08-13 10:01:06.632 ℹ️-[TSDBLogger db_delete] maxAge: 259200

2025-08-13 10:01:06.633 ℹ️-[TSLocationManager init] 
╔═════════════════════════════════════════════
║ TSLocationManager (build 388)
╠══════════════════════════════════════════════
{
    activityRecognitionInterval = 10000;
    activityType = 1;
    authorization =     {
    };
    autoSync = 0;
    autoSyncThreshold = 0;
    batchSync = 0;

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions