From 8bbc84906aea73ea5c1a6d221be23e9a40576220 Mon Sep 17 00:00:00 2001 From: iqFareez <60868965+fareezMaple@users.noreply.github.com> Date: Mon, 30 Nov 2020 07:20:45 +0800 Subject: [PATCH] actually fix the notificarion channel issue? --- lib/utils/notifications_helper.dart | 8 ++++---- pubspec.yaml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/utils/notifications_helper.dart b/lib/utils/notifications_helper.dart index c928105..0dc6e18 100644 --- a/lib/utils/notifications_helper.dart +++ b/lib/utils/notifications_helper.dart @@ -71,7 +71,7 @@ Future scheduleNotification( String body, DateTime scheduledTime}) async { var androidSpecifics = notifs.AndroidNotificationDetails( - '$name-id', // This specifies the ID of the Notification + '$name id', // This specifies the ID of the Notification '$name notification', // This specifies the name of the notification channel 'Scheduled daily prayer notification', //This specifies the description of the channel priority: notifs.Priority.max, @@ -92,9 +92,9 @@ Future scheduleNotification( Future showDebugNotification() async { //to test notifocation can show? const notifs.AndroidNotificationDetails androidPlatformChannelSpecifics = - notifs.AndroidNotificationDetails('Debug id', 'Debug channel', - 'Test notification can be shown in device', - importance: Importance.max, + notifs.AndroidNotificationDetails( + 'Debug id', 'Debug channel', 'Notification debug test', + importance: Importance.defaultImportance, priority: Priority.high, ticker: 'ticker'); const NotificationDetails platformChannelSpecifics = NotificationDetails( diff --git a/pubspec.yaml b/pubspec.yaml index c5d8d12..b5d6099 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -3,7 +3,7 @@ description: App waktu solat seluruh Malaysia publish_to: "none" # Remove this line if you wish to publish to pub.dev -version: 1.11.53-hotfix+27 +version: 1.11.53-hotfix.2+28 environment: sdk: ">=2.7.0 <3.0.0"