WIP
This commit is contained in:
parent
48e8a1a5cb
commit
26e56d07d3
|
@ -612,7 +612,11 @@ class AppState extends ChangeNotifier {
|
|||
AppState().deleteRemoteId();
|
||||
AppState().deleteSerialNumber();
|
||||
secureStorage.deleteAll();
|
||||
|
||||
AppState().isLogged = false;
|
||||
AppState().setFirstRun(false);
|
||||
|
||||
AppState().update(() {});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -28,7 +28,9 @@ Future<void> initializeApp() async {
|
|||
final appState = AppState();
|
||||
await appState.initializePersistedState();
|
||||
|
||||
if (AppState().firstRun == true) AppState().setFirstRun(false);
|
||||
if (AppState().firstRun == true) {
|
||||
AppState().deleteAll();
|
||||
}
|
||||
|
||||
await Firebase.initializeApp();
|
||||
await NotificationService.initialize();
|
||||
|
|
Loading…
Reference in New Issue