|
|
@ -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();
|
|
|
|