Skip to content

Commit

Permalink
🐛 "Fixes" #142
Browse files Browse the repository at this point in the history
Downgrade to flutter_local_notification 9.9.1 and timezone to 0.8.0
  • Loading branch information
iqfareez committed Sep 26, 2022
1 parent 1b30714 commit 3ee8a9f
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 24 deletions.
12 changes: 4 additions & 8 deletions lib/notificationUtil/notifications_helper.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,10 @@ Future<void> initNotifications() async {
InitializationSettings(android: initializationSettingsAndroid);
await FlutterLocalNotificationsPlugin().initialize(
initializationSettings,
onDidReceiveNotificationResponse:
(NotificationResponse notificationResponse) {
switch (notificationResponse.notificationResponseType) {
case NotificationResponseType.selectedNotification:
selectNotificationSubject.add(notificationResponse.payload);
break;
case NotificationResponseType.selectedNotificationAction:
break;
onSelectNotification: (String? payload) async {
if (payload != null) {
print('notification payload: $payload');
selectNotificationSubject.add(payload);
}
},
);
Expand Down
26 changes: 13 additions & 13 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -175,28 +175,28 @@ packages:
name: firebase_analytics
url: "https://pub.dartlang.org"
source: hosted
version: "9.3.5"
version: "9.3.6"
firebase_analytics_platform_interface:
dependency: transitive
description:
name: firebase_analytics_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "3.3.4"
version: "3.3.5"
firebase_analytics_web:
dependency: transitive
description:
name: firebase_analytics_web
url: "https://pub.dartlang.org"
source: hosted
version: "0.4.2+4"
version: "0.4.2+5"
firebase_core:
dependency: "direct main"
description:
name: firebase_core
url: "https://pub.dartlang.org"
source: hosted
version: "1.22.0"
version: "1.23.0"
firebase_core_platform_interface:
dependency: transitive
description:
Expand All @@ -217,14 +217,14 @@ packages:
name: firebase_crashlytics
url: "https://pub.dartlang.org"
source: hosted
version: "2.8.10"
version: "2.8.11"
firebase_crashlytics_platform_interface:
dependency: transitive
description:
name: firebase_crashlytics_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "3.2.16"
version: "3.2.17"
flutter:
dependency: "direct main"
description: flutter
Expand Down Expand Up @@ -266,21 +266,21 @@ packages:
name: flutter_local_notifications
url: "https://pub.dartlang.org"
source: hosted
version: "11.0.0"
version: "9.9.1"
flutter_local_notifications_linux:
dependency: transitive
description:
name: flutter_local_notifications_linux
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.0"
version: "0.5.1"
flutter_local_notifications_platform_interface:
dependency: transitive
description:
name: flutter_local_notifications_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "6.0.0"
version: "5.0.0"
flutter_localizations:
dependency: "direct main"
description: flutter
Expand Down Expand Up @@ -365,14 +365,14 @@ packages:
name: geolocator
url: "https://pub.dartlang.org"
source: hosted
version: "9.0.1"
version: "9.0.2"
geolocator_android:
dependency: transitive
description:
name: geolocator_android
url: "https://pub.dartlang.org"
source: hosted
version: "4.1.2"
version: "4.1.3"
geolocator_apple:
dependency: transitive
description:
Expand Down Expand Up @@ -463,7 +463,7 @@ packages:
name: in_app_review_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.3"
version: "2.0.4"
intl:
dependency: "direct main"
description:
Expand Down Expand Up @@ -860,7 +860,7 @@ packages:
name: timezone
url: "https://pub.dartlang.org"
source: hosted
version: "0.9.0"
version: "0.8.0"
typed_data:
dependency: transitive
description:
Expand Down
6 changes: 3 additions & 3 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: 2.6.2+110
version: 2.6.2-hotfix.1+111

environment:
sdk: ">=2.12.0 <3.0.0"
Expand All @@ -27,7 +27,7 @@ dependencies:
flutter_spinkit: ^5.0.0
flutter_svg: ^1.0.0
provider: ^6.0.0
flutter_local_notifications: ^11.0.0
flutter_local_notifications: "9.9.1"
app_settings: ^4.1.0
flutter_web_browser: ^0.17.0
geocoding: ^2.0.0
Expand All @@ -43,7 +43,7 @@ dependencies:
flutter_markdown: ^0.6.9
firebase_analytics: ^9.1.2
auto_start_flutter: ^0.1.0
timezone: ^0.9.0
timezone: "0.8.0"
quick_actions: ^1.0.0
firebase_crashlytics: ^2.8.5
rxdart: ^0.27.5
Expand Down

0 comments on commit 3ee8a9f

Please # to comment.