Local Notification Not Working in Foreground - IOS
Describe the bug When I want to create the local notification It shows these lines in logs.
9.3.0 - [FirebaseMessaging][I-FCM019001] Analytics logging is disabled. Do not log the event.
9.3.0 - [FirebaseMessaging][I-FCM006000] Received message missing local start time, not a contextual message.
Expected behavior Works fine on Android Works fine on IOS in Background but not working in IOS Foregored
Plugins I used in the project
flutter_local_notifications: ^9.5.3+1
and other firebase plugins also listed below
firebase_analytics: ^8.1.2
firebase_core: ^1.7.0
firebase_storage: ^10.0.1
cloud_firestore: ^2.4.0
firebase_crashlytics: 2.2.1
firebase_remote_config:
firebase_dynamic_links: ^2.0.9
firebase_in_app_messaging: ^0.5.0+7
firebase_messaging: ^11.2.13
firebase_auth: ^3.2.0
Flutter doctor verbose
[✓] Flutter (Channel stable, 2.10.3, on macOS 12.1 21C52 darwin-arm, locale en-PK)
• Flutter version 2.10.3 at /Users/muhammadmustafa/Downloads/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 7e9793dee1 (5 months ago), 2022-03-02 11:23:12 -0600
• Engine revision bd539267b4
• Dart version 2.16.1
• DevTools version 2.9.2
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at /Users/muhammadmustafa/Library/Android/sdk
• Platform android-31, build-tools 30.0.3
• Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 13.4.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• CocoaPods version 1.11.3
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2021.2)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
[✓] VS Code (version 1.68.1)
• VS Code at /Users/muhammadmustafa/Downloads/Visual Studio Code.app/Contents
• Flutter extension version 3.44.0
[✓] VS Code (version 1.68.1)
• VS Code at /Users/muhammadmustafa/Downloads/Visual Studio Code 2.app/Contents
• Flutter extension version 3.44.0
[✓] Connected device (2 available)
• iPhone (mobile) • 00008020-001E65E13642002E • ios • iOS 15.6 19G71
• Chrome (web) • chrome • web-javascript • Google Chrome 103.0.5060.134
[✓] HTTP Host Availability
• All required HTTP hosts are available
• No issues found!
I think there is a Plugin Compatibility Issue because I use the same code for flutter_local_notification in separate project it's working fine there
@domesticmouse @wanbok @robert-ancell @dluksza
If you believe there's an issue then use then provide a link to a repo with a minimal app that can reproduce the issue. This is mentioned in the bug report template.
P.S. out of courtesy and respect for others, please avoid tagging others that don't work on the library.
Closing as the requested information hasn't been provided