transistorsoft / cordova-background-geolocation-lt

The most sophisticated background location-tracking & geofencing module with battery-conscious motion-detection intelligence for iOS and Android.
http://www.transistorsoft.com/shop/products/cordova-background-geolocation
Other
656 stars 277 forks source link

Report Location in IOS #1406

Closed Magiis closed 6 days ago

Magiis commented 11 months ago

Your Environment

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); });

          this.logAdmin("BackgroundGeolocation ready => !state.enabled");

          await BackgroundGeolocation.start(); 
        } else {
          this.logAdmin("BackgroundGeolocation ready => already state.enabled");
        }
      }
    );
} catch (error) {
  console.log(
    'TravelId: '+ (this.travelService && this.travelService.currentTravel 
      ? this.travelService.currentTravel.travelId.toString()
      : 'No tiene viaje asignado aun') 
    +' Error en initializeBackgroundGeolocation reportado por transistor: '+ error);

}

Context

Debug logs

Logs ``` PASTE_YOUR_LOGS_HERE ```
christocracy commented 11 months ago

See CHANGELOG. iOS introduced a breaking change in iOS 16.4.

update to latest version of plug-in.

github-actions[bot] commented 2 weeks ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 6 days ago

This issue was closed because it has been inactive for 14 days since being marked as stale.