ДЩ
Size: a a a
ДЩ
SS
t
t
ДЩ
t
GV
GV
BackgroundLocator.registerLocationUpdate(
callback,
androidSettings: AndroidSettings(
accuracy: LocationAccuracy.BALANCED,
distanceFilter: 0,
interval: 5,
wakeLockTime: 3600,
androidNotificationSettings: AndroidNotificationSettings(
notificationTitle: S.current.gpsTrackerNotificationTitle,
notificationBigMsg: S.current.gpsTrackerNotificationMsg,
notificationMsg: S.current.gpsTrackerNotificationMsg,
notificationIcon: "ic_push",
),
),
autoStop: false,
iosSettings: IOSSettings(
accuracy: LocationAccuracy.BALANCED,
distanceFilter: 0,
showsBackgroundLocationIndicator: false,
),
);
void callback(LocationDto locationDto) async {
print('test');
Dio(BaseOptions(baseUrl: 'url', validateStatus: (_) => true))
.get('test', queryParameters: {
'latitude': locationDto.latitude,
'longitude': locationDto.longitude,
});
}
SS
SS
SS
SV
GV
A
ДЩ
L
t
L