Closed Magiis closed 6 days ago
See CHANGELOG. iOS introduced a breaking change in iOS 16.4.
update to latest version of plug-in.
This issue is stale because it has been open for 30 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.
Your Environment
cordova -v
): 10.0.0cordova platform ls
): ios 6.3.0#ready
: config = { isMoving: true, reset: true, debug: false, logLevel: BackgroundGeolocation.LOG_LEVEL_ERROR, logMaxDays: 1, desiredAccuracy: BackgroundGeolocation.DESIRED_ACCURACY_HIGH, distanceFilter: 15, stopOnTerminate: true, startOnBoot: false, notification: { title: this.translateService.instant( "notifications.geolocation_active.title" ), text: this.translateService.instant( "notifications.geolocation_active.text" ), }, foregroundService: true, heartbeatInterval: 60, preventSuspend: false, disableElasticity: true, autoSync: true, url: this.getUrl(driverId), locationTemplate:'{ "latitude":<%= latitude %>, "longitude":<%= longitude %>, "accuracy":<%= accuracy %>, "timestamp": "<%= timestamp %>" }', geofenceTemplate:'{ "latitude":<%= latitude %>, "longitude":<%= longitude %>, "accuracy":<%= accuracy %>, "timestamp": "<%= timestamp %>" }', headers: { Authorization: "Bearer " + this.connectionService.getToken() }, maxRecordsToPersist: 1, locationAuthorizationRequest: 'Always', backgroundPermissionRationale: { title: this.translateService.instant("notifications.geolocation_allow.title"), message: this.translateService.instant("notifications.geolocation_allow.message"), positiveAction: this.translateService.instant("notifications.geolocation_allow.accept"), negativeAction: this.translateService.instant("notifications.geolocation_allow.cancel") }, // activityType: BackgroundGeolocation.ACTIVITY_TYPE_AUTOMOTIVE_NAVIGATION, stopTimeout: 999999999999999 };Expected Behavior
When the app goes into the background, it reports locations less frequently compared to when it is in the foreground.
Actual Behavior
The location reporting has a different frequency in the foreground compared to the background.
Steps to Reproduce
Here is the initialization code: try { console.warn("INICIALIZO BACKGROUNDGEOLOCATION"); await BackgroundGeolocation.ready( this.getBackgroundGeolocationConfig(driverId), async (state) => { if (!state.enabled) { BackgroundGeolocation.onLocation(this.onLocation.bind(this)); BackgroundGeolocation.onHeartbeat(this.onHeartbeat.bind(this)); BackgroundGeolocation.onGeofence(this.onGeofence.bind(this)); BackgroundGeolocation.onHttp(httpEvent => { console.log('[http] => ', httpEvent); });
}
Context
Debug logs
Logs
``` PASTE_YOUR_LOGS_HERE ```