Background Location
//to start recieving location updates
window.WTN.backgroundLocation.start({
apiUrl,
timeout,
data,
backgroundIndicator : false,
pauseAutomatically : true,
distanceFilter : 0.0,
desiredAccuracy : "best",
activityType : "other",
})
//to stop recieving location updates
window.WTN.backgroundLocation.stop()
import { start, stop } from "webtonative/BackgroundLocation"
//to start recieving location updates
start({
apiUrl,
timeout,
data,
backgroundIndicator : false,
pauseAutomatically : true,
distanceFilter : 0.0,
desiredAccuracy : "best",
activityType : "other",
})
//to stop recieving location updates
stop()Call the method with the following data
Notes
Location Object
Last updated