update sound when receive from FCM in foreground, background and terminate
This commit is contained in:
@@ -192,6 +192,8 @@ class _LoginScreenState extends State<LoginScreen> {
|
||||
LocaleManager.instance
|
||||
.setString(PreferencesKeys.ROLE, loginModel.role!);
|
||||
context.goNamed(AppRoutes.HOME.name);
|
||||
// context.goNamed("notification");
|
||||
|
||||
} else {
|
||||
showErrorTopSnackBarCustom(
|
||||
context, appLocalization(context).login_incorrect_usernameOrPass);
|
||||
@@ -214,6 +216,7 @@ class _LoginScreenState extends State<LoginScreen> {
|
||||
int timeNow = DateTime.now().millisecondsSinceEpoch ~/ 1000;
|
||||
if (token != "" && (exp - timeNow) > 7200) {
|
||||
context.goNamed(AppRoutes.HOME.name);
|
||||
// context.goNamed("notification");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user