-
Notifications
You must be signed in to change notification settings - Fork 4k
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
🐛 [firebase_messaging] MacOS ImageNotification not showing images #5717
Comments
I'm successfully sending notifications to macOS but not actually seeing them anywhere. Are you seeing regular notifications and just missing the images? |
Yes, I am successfully receiving regular notifications, but only when the application is built for release, hardened, and notarized by Apple. Any other builds (debug, profile, release without notarization) do not show notifications (but I do get the permission request notification). |
Was able to reproduce this with a notarized build of the official example using firebase_core: ^1.0.3
firebase_messaging: ^9.1.1
flutter_local_notifications: ^5.0.0+1
http: ^0.13.1 flutter doctor -v[✓] Flutter (Channel master, 2.2.0-11.0.pre.103, on macOS 11.2.3 20D91
darwin-arm, locale en-GB)
• Flutter version 2.2.0-11.0.pre.103 at
/Users/nevercode/development/flutter_master
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision f0c9710493 (5 days ago), 2021-04-13 20:29:40 -0500
• Engine revision 04cd0db032
• Dart version 2.13.0 (build 2.13.0-232.0.dev)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at /Users/nevercode/Library/Android/sdk
• Platform android-30, build-tools 30.0.3
• Java binary at: /Users/nevercode/Library/Application
Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/201.7199119/Android
Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build
1.8.0_242-release-1644-b3-6915495)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.4, Build version 12D4e
• CocoaPods version 1.10.1
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 4.1)
• Android Studio at /Users/nevercode/Library/Application
Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/201.7199119/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
1.8.0_242-release-1644-b3-6915495)
[✓] Connected device (3 available)
• Nevercode’s iPhone (mobile) • b668e524315069f3db3661ac11ff1f66afafebdb •
ios • iOS 14.4.2
• macOS (desktop) • macos •
darwin-arm64 • macOS 11.2.3 20D91 darwin-arm
• Chrome (web) • chrome •
web-javascript • Google Chrome 89.0.4389.128
• No issues found! Notifications show up but no images. Also, it seems like the official example just crashes because of Logs
|
Hello 👋 I'm not sure if this is still an issue, but you should use |
Bug report
Describe the bug
Following the same steps to add the
ImageNotification
service extension to my Flutter's macOS application as I did for iOS (where images are working), images are not being shown on macOS (Big Sur, 11.3).Steps to reproduce
Steps to reproduce the behavior:
Expected behavior
The image to be shown in the notification. The same message, sent to multiple devices in my backend, shows the image on Android, iOS, but not the macOS instance.
Additional Context
Runner
target andImageNotification
target have their deployment target set to 10.14Runner
target andImageNotification
target have their version and build set to the same valueFlutter doctor
Run
flutter doctor
and paste the output below:Click To Expand
Flutter dependencies
Run
flutter pub deps -- --style=compact
and paste the output below:Click To Expand
The text was updated successfully, but these errors were encountered: