firebase notification token issue fix.

development_mirza
Sikander Saleem 2 years ago
parent 84a07df310
commit dd6627f216

@ -37,7 +37,7 @@ class AppNotifications {
void initNotification(String? firebaseToken) async { void initNotification(String? firebaseToken) async {
// await requestPermissions(); // await requestPermissions();
AppState().deviceNotificationToken = firebaseToken; AppState().setDeviceToken = firebaseToken;
// await Permission.notification.isDenied.then((value) { // await Permission.notification.isDenied.then((value) {
// if (value) { // if (value) {
// Permission.notification.request(); // Permission.notification.request();

@ -112,7 +112,7 @@ class _LoginScreenState extends State<LoginScreen> {
} }
} catch (ex) { } catch (ex) {
Utils.hideLoading(context); Utils.hideLoading(context);
Utils.handleException(ex, context, (errorMsg) {}); Utils.handleException(ex, context, null);
} }
} }

@ -49,7 +49,7 @@ dependencies:
flutter_calendar_carousel: ^2.1.0 flutter_calendar_carousel: ^2.1.0
pie_chart: ^5.1.0 pie_chart: ^5.1.0
shared_preferences: ^2.0.12 shared_preferences: ^2.0.12
firebase_messaging: ^11.2.8 firebase_messaging: ^13.0.4
shimmer: ^2.0.0 shimmer: ^2.0.0
logger: ^1.1.0 logger: ^1.1.0
flutter_countdown_timer: ^4.1.0 flutter_countdown_timer: ^4.1.0

Loading…
Cancel
Save