Skip to content

Latest commit

 

History

History
77 lines (64 loc) · 1.81 KB

MIGRATION.md

File metadata and controls

77 lines (64 loc) · 1.81 KB

Migration guides

3.7.1 to 3.7.2

  • Radar.getTripOptions() and Radar.getTrackingOptions return typed RadarTripOptions and RadarTrackingOptions respectively rather than nesting within an options key.

Change

Radar.getTripOptions().then((result) => {
  Radar.updateTrip({ options: result.options, ...})
});

Radar.getTrackingOptions().then((result) => {
  Radar.starTrackingCustom({ options: result.options, ...})
});

to

Radar.getTripOptions().then((result: RadarTripOptions) => {
  Radar.updateTrip({ options: result, ...})
});

Radar.getTrackingOptions().then((result: RadarTrackingOptions) => {
  Radar.startTrackingCustom({ options: result, ...})
});

3.5.0 to 3.5.2

  • Exposes a new Radar.startTrip() function that accepts trackingOptions that apply while on a trip.
// 3.5.2 (new)

Radar.startTrip({
  options: {
    tripOptions: {
      externalId: "1600",
      destinationGeofenceTag: "store",
      destinationGeofenceExternalId: "12345"
    },
    trackingOptions: {
      "desiredStoppedUpdateInterval": 30,
      "fastestStoppedUpdateInterval": 30,
      "desiredMovingUpdateInterval": 30,
      "fastestMovingUpdateInterval": 30,
      "desiredSyncInterval": 20,
      "desiredAccuracy": "high",
      "stopDuration": 0,
      "stopDistance": 0,
      "replay": "none",
      "sync": "all",
      "showBlueBar": true,
      "useStoppedGeofence": false,
      "stoppedGeofenceRadius": 0,
      "useMovingGeofence": false,
      "movingGeofenceRadius": 0,
      "syncGeofences": false,
      "syncGeofencesLimit": 0,
      "beacons": false,
      "foregroundServiceEnabled": false
    }
  }
});

// 3.5.0 (old)

Radar.startTrip({
  options: {
    externalId: "1600",
    destinationGeofenceTag: "store",
    destinationGeofenceExternalId: "12345"
  }
});

Radar.startTrackingContinuous();