HaylLtd / cordova-background-geolocation-plugin

Background and foreground geolocation plugin for Cordova.
Apache License 2.0
57 stars 66 forks source link

EXC_BAD_ACCESS on ios XCODE #137

Closed hmsfdev closed 1 year ago

hmsfdev commented 1 year ago

Describe the bug When I launch XCODE on my physical device I got EXC_BAD_ACCESS error from XCODE and the app crash

To Reproduce

  startBackgroundGeoLoc(){
    BackgroundGeolocation.configure({
      locationProvider: BackgroundGeolocation.ACTIVITY_PROVIDER,
      desiredAccuracy: BackgroundGeolocation.HIGH_ACCURACY,
      stationaryRadius: 50,
      distanceFilter: 50,
      notificationTitle: 'Background tracking',
      notificationText: 'enabled',
      debug: true,
      interval: 10000,
      fastestInterval: 5000,
      activitiesInterval: 10000,
      url: 'http://192.168.1.27:8000/api/saveLocationBackground',
      httpHeaders: {
        'X-FOO': 'bar'
      },
      // customize post properties
      postTemplate: {
        lat: '@latitude',
        lon: '@longitude',
        foo: 'bar' // you can also add your own properties
      }

    }, () => {
      // Now it's safe.

    });
      BackgroundGeolocation.start();

  }

Is the code I use to call the backgroundLocation

Thanks

HarelM commented 1 year ago

Doesn't configure returns a promise?

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 1 year ago

This issue has been automatically closed, because it has not had recent activity. If you believe this issue shouldn't be closed, please reopen or write down a comment requesting issue reopening with explanation why you think it's important. Thank you for your contributions.