diff --git a/lib/push_service.dart b/lib/push_service.dart index fc1f08e..da6f24c 100644 --- a/lib/push_service.dart +++ b/lib/push_service.dart @@ -3,6 +3,7 @@ import 'dart:io'; import 'package:firebase_messaging/firebase_messaging.dart'; import 'package:flutter_background_geolocation/flutter_background_geolocation.dart' as bg; +import 'package:traccar_client/password_service.dart'; import 'preferences.dart'; @@ -36,6 +37,8 @@ class PushService { await bg.BackgroundGeolocation.start(); case 'positionStop': await bg.BackgroundGeolocation.stop(); + case 'factoryReset': + await PasswordService.setPassword(''); } }