Skip to content

iOS state doesn't persist across reboots #1667

@tananaev

Description

@tananaev

I received quite a few reports that enabled state doesn't persist across phone reboots. It used to work on earlier version of the plugin. Any ideas why it could be happening?

Example config:

{
  "geolocation": {
    "distanceFilter": 75.0,
    "desiredAccuracy": 10,
    "disableElasticity": true,
    "pausesLocationUpdatesAutomatically": true,
    "showsBackgroundLocationIndicator": false
  },
  "app": {
    "stopOnTerminate": false,
    "preventSuspend": false
  },
  "http": {
    "autoSync": false,
    "url": "http://demo.traccar.org:5055/",
    "params": {
      "device_id": "68003259"
    }
  },
  "activity": {
    "disableStopDetection": false
  },
  "persistence": {
    "locationTemplate": "{\"timestamp\": \"<%= timestamp %>\",\"coords\": {\"latitude\": <%= latitude %>,\"longitude\": <%= longitude %>,\"accuracy\": <%= accuracy %>,\"speed\": <%= speed %>,\"heading\": <%= heading %>,\"altitude\": <%= altitude %>},\"is_moving\": <%= is_moving %>,\"odometer\": <%= odometer %>,\"event\": \"<%= event %>\",\"battery\": {\"level\": <%= battery.level %>,\"is_charging\": <%= battery.is_charging %>},\"activity\": {\"type\": \"<%= activity.type %>\"},\"extras\": {},\"_\": \"&id=68003259&lat=<%= latitude %>&lon=<%= longitude %>&timestamp=<%= timestamp %>&\"}",
    "maxRecordsToPersist": -1
  },
  "logger": {
    "logLevel": 5,
    "logMaxDays": 1
  },
  "isMoving": true
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions