File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
android/src/main/kotlin/com/icapps/background_location_tracker/service Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ import background_location_tracker
74
74
}
75
75
```
76
76
77
- ## Dart implementation
77
+ ## Flutter implementation
78
78
79
79
Make sure you set the ` @pragma('vm:entry-point') ` to make sure you can find the callback in release.
80
80
Original file line number Diff line number Diff line change @@ -163,8 +163,8 @@ internal class LocationUpdatesService : Service() {
163
163
} else {
164
164
startService(Intent (applicationContext, LocationUpdatesService ::class .java))
165
165
}
166
- val locationRequest = this . locationRequest ? : return
167
- val locationCallback = this . locationCallback ? : return
166
+ val locationRequest = locationRequest ? : return
167
+ val locationCallback = locationCallback ? : return
168
168
try {
169
169
fusedLocationClient?.requestLocationUpdates(locationRequest, locationCallback, Looper .myLooper())
170
170
} catch (unlikely: SecurityException ) {
@@ -185,7 +185,7 @@ internal class LocationUpdatesService : Service() {
185
185
wakeLock?.release();
186
186
}
187
187
Logger .debug(TAG , " Removing location updates" )
188
- val locationCallback = this . locationCallback ? : return
188
+ val locationCallback = locationCallback ? : return
189
189
try {
190
190
fusedLocationClient?.removeLocationUpdates(locationCallback)
191
191
SharedPrefsUtil .saveIsTracking(this , false )
You can’t perform that action at this time.
0 commit comments