feat(notifications): Issue-562

This commit is contained in:
mso7nueh
2025-07-14 14:06:07 +03:00
parent 5ac5deec48
commit 74df7d82db
7 changed files with 38 additions and 18 deletions

View File

@@ -1,6 +1,8 @@
import 'dart:developer';
import 'package:eatvio_app/core/app_router.dart';
import 'package:eatvio_app/core/firebase_api.dart';
import 'package:eatvio_app/core/locator_service.dart';
import 'package:eatvio_app/core/token_storage.dart';
import 'package:eatvio_app/features/registration/models/user_registration_model.dart';
@@ -59,6 +61,7 @@ class RegistrationCubit extends Cubit<RegistrationState> {
);
await TokenStorage.saveTokenInStorage(token);
AppRouter.navigatorKey.currentContext?.pushNamed('verifyEmailScreen');
await sl<FirebaseApi>().registerPushToken();
} catch (e, st) {
log(e.toString(), stackTrace: st);
}