Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: dont ask permissions before notification initialization #1344

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading