-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to stop location tracking #1
Comments
@rajatjain7869 if you want to stop location updates, you have to capture the stream subscription from the location.onLocationChanged().listen, as such: locationData = location.onLocationChanged().listen((LocationData cLoc) { then anywhere you want to stop it, then you say: locationData.cancel() or locationData.pause(); if you want to pick it back up, then you say: locationData.resume(); Hope that helps! |
aftter add .cancel(); or .pause(); , function showPinsOnMap(); not load (sourcePinInfo, destinationPinInfo). |
this is Good example for live tracking but how we will stop the location updates or you can say location listener updates
The text was updated successfully, but these errors were encountered: