-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Notification Issue cause android 13 stuck at startup
- Loading branch information
1 parent
ba0326a
commit 7fecf66
Showing
3 changed files
with
88 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,19 @@ | ||
import 'package:get_storage/get_storage.dart'; | ||
import 'package:hisnelmoslem/app/shared/functions/print.dart'; | ||
import 'package:hisnelmoslem/core/utils/alarm_manager.dart'; | ||
import 'package:hisnelmoslem/core/utils/awesome_notification_manager.dart'; | ||
import 'package:hisnelmoslem/core/utils/migration/migration.dart'; | ||
import 'package:hisnelmoslem/core/utils/notification_manager.dart'; | ||
|
||
Future<void> initServices() async { | ||
await GetStorage.init(); | ||
await Migration.start(); | ||
await awesomeNotificationManager.init(); | ||
await localNotifyManager.cancelAllNotifications(); | ||
await awesomeNotificationManager.appOpenNotification(); | ||
await alarmManager.checkAllAlarmsInDb(); | ||
try { | ||
await GetStorage.init(); | ||
await Migration.start(); | ||
await awesomeNotificationManager.init(); | ||
await alarmManager.checkAllAlarmsInDb(); | ||
await localNotifyManager.cancelAllNotifications(); | ||
await awesomeNotificationManager.appOpenNotification(); | ||
} catch (e) { | ||
hisnPrint(e); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters