Skip to content

Commit

Permalink
fix: dont ask permissions before notification initilazation
Browse files Browse the repository at this point in the history
  • Loading branch information
Sembauke committed Feb 21, 2025
1 parent 3a0cec3 commit e99c3f7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions mobile-app/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ PODS:
- sqflite (0.0.3):
- Flutter
- FlutterMacOS
- ua_client_hints (1.2.2):
- ua_client_hints (1.4.1):
- Flutter
- url_launcher_ios (0.0.1):
- Flutter
Expand Down Expand Up @@ -358,7 +358,7 @@ SPEC CHECKSUMS:
shared_preferences_foundation: b4c3b4cddf1c21f02770737f147a3f5da9d39695
SimpleKeychain: 130211269f88f038d7dc5254cf0b1b9ce978c398
sqflite: 673a0e54cc04b7d6dba8d24fb8095b31c3a99eec
ua_client_hints: 7f4e0f5d390685e8f7efd6eb363594f760108926
ua_client_hints: aeabd123262c087f0ce151ef96fa3ab77bfc8b38
url_launcher_ios: 5334b05cef931de560670eeae103fd3e431ac3fe
webview_flutter_wkwebview: be0f0d33777f1bfd0c9fdcb594786704dbf65f36

Expand Down
4 changes: 2 additions & 2 deletions mobile-app/lib/service/podcast/notification_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ class NotificationService {
iOS: iosInitializationSettings,
);

await _flutterLocalNotificationsPlugin.initialize(initializationSettings);

await _flutterLocalNotificationsPlugin
.resolvePlatformSpecificImplementation<
AndroidFlutterLocalNotificationsPlugin>()
?.requestNotificationsPermission();

await _flutterLocalNotificationsPlugin.initialize(initializationSettings);
}

Future<void> showNotification(String title, String body) async {
Expand Down

0 comments on commit e99c3f7

Please sign in to comment.