Skip to content

Add a check if Location Setting is enabled #461

@Falke-Design

Description

@Falke-Design

Is your feature request related to a problem? Please describe.
When I enable the Traccar Service with Location disabled, it starts but it will never receive any locations. Doesn't matter if GPS, NETWORK or PASSIVE provider, all of them need Location enabled.

Describe the solution you'd like
First I would suggest to add a check if the Location Settings are enabled while enabling the Service. If Location is not enabled stop the service again.

Second I would suggest to add a listener / broadcast to check if Location is disabled while running the Service and if it gets disabled to show a Notification that no location updates are sent anymore and that the Location Setting should be enabled again. Also adding a Message to "Status" would make sense too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions