Skip to content

[Help Wanted]: iOS app doesn't restart for background location #309

Open
@stib

Description

@stib

Required Reading

  • Confirmed

Plugin Version

capacitor-background-geolocation 6.1.4 capacitor-background-fetch 6.0.1

Mobile operating-system(s)

  • iOS
  • Android

What do you require assistance about?

I have the App running in iOS simulator on Mac and simulating a drive. When the App is in foreground or put in background the location updates are recorded successfully. However when the App is closed the location updates stop.

Expected Behavior:
After stationaryRadius is crossed the App should restart and start sending location

Actual Behavior:
The App doesn't restart after terminated, even after waiting for a while. If the App is restarted manually then the updated location shows again, far in excess of the 100 meters specified in stationaryRadius

Ionic info
Ionic:

Ionic CLI : 7.1.1 (/Users/userx/.nvm/versions/node/v20.2.0/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 6.7.5
@angular-devkit/build-angular : 16.2.16
@angular-devkit/schematics : 16.2.16
@angular/cli : 16.2.16
@ionic/angular-toolkit : 12.1.1

Capacitor:

Capacitor CLI : 6.2.0
@capacitor/android : 6.2.0
@capacitor/core : 6.2.0
@capacitor/ios : 6.2.0

Cordova:

Cordova CLI : 12.0.0 ([email protected])
Cordova Platforms : android 9.1.0, browser 6.0.0, ios 6.2.0
Cordova Plugins : cordova-plugin-ionic-webview 4.2.1, (and 3 other plugins)

Utility:

cordova-res : 0.15.4
native-run : 2.0.1

System:

ios-sim : 8.0.2
NodeJS : v20.2.0 (/Users/userx/.nvm/versions/node/v20.2.0/bin/node)
npm : 9.6.6
OS : macOS Unknown
Xcode : Xcode 16.0 Build version 16A242d

Other Info
It shouldn't matter but I am using iOS 17.5 on emulators - tried for iPhone 15 Pro Max and 13 Pro
App permission is set to Always

Thanks,
Sanjay.

[Optional] Plugin Code and/or Config

# Relevant part of config included
stopOnTerminate: false, 
stationaryRadius: 100,

[Optional] Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions