Skip to content

deleteAllLocations not deleting locations #241

@M00ker

Description

@M00ker

Your Environment

  • Plugin version: 0.5.0-alpha.35
  • Platform: iOS
  • OS version: 9.3
  • Device manufacturer and model: Simulator
  • React Native version: 0.56
  • Plugin configuration options:
  • Link to your project:

Context

I start recording. I see that locations are recorded by calling 'getAllLocations()'.

I then call 'deleteAllLocations()' and then call 'getAllLocations()' once again. Locations have not been deleted as the 'getAllLocations()' returns a non empty list of locations.

Expected Behavior

All locations removed when 'deleteAllLocations()' called.

Actual Behavior

'getAllLocations()' returns a non empty list of locations.

Possible Fix

Steps to Reproduce

`deleteLocations = () => {
BackgroundGeolocation.deleteAllLocations(
function (success) {
console.log("Success: " + success);
},

  function (fail) {
    console.log("Fail: " + fail);
  }
)

BackgroundGeolocation.getLocations(
  function (locations) {
    console.log(locations);
  }
)

}`

Context

Debug logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleauto labeled abandoned issues after a period of inactivity

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions