Update: 2026-07-31 03:58:40
This commit is contained in:
@@ -110,7 +110,8 @@ Future<void> backgroundMessageHandler(RemoteMessage message) async {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// عرض الإشعار المحلي عبر الكلاس المخصص
|
// عرض الإشعار المحلي عبر الكلاس المخصص
|
||||||
await NotificationController.showBackgroundNotification(title, body, 'ding');
|
await NotificationController.showBackgroundNotification(
|
||||||
|
title, body, 'ding');
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
Log.print("Background local notification failed: $e");
|
Log.print("Background local notification failed: $e");
|
||||||
@@ -118,6 +119,7 @@ Future<void> backgroundMessageHandler(RemoteMessage message) async {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
void main() {
|
void main() {
|
||||||
// Use runZonedGuarded to catch all unhandled exceptions in the app.
|
// Use runZonedGuarded to catch all unhandled exceptions in the app.
|
||||||
runZonedGuarded<Future<void>>(() async {
|
runZonedGuarded<Future<void>>(() async {
|
||||||
|
|||||||
Reference in New Issue
Block a user