Skip to content

Inconsistent behaviour of deleteAllLocations() #45

Description

@mnazwan

Current code is using ContentProviderLocationDAO instead of SQLiteLocationDAO, therefore deleteAllLocations() will delete all records, instead of updating status to BackgroundLocation.DELETED, as in SQLiteLocationDAO.

Current documentation at https://github.com/mauron85/react-native-background-geolocation shows that deleteAllLocations() WILL NOT delete any records, instead it will update the status to BackgroundLocation.DELETED. Considering the documentation is valid, deleteAllLocations() is now broken as it will delete all records, since it's using ContentProviderLocationDAO, not SQLiteLocationDAO.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions