-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Description
Bug report
Describe the bug
Everything works fine on Android and version 7.0.3
But on version 8.0.0-dev.8, when the iOS App(iOS 14.2) receives a notification and clicks the notification to start the App, the App icon badge will not be cleared
Here's my notification content:
{senderId: null, category: null, collapseKey: null, contentAvailable: true, data: {planId: flutter.fcmTest, postId: 138, badge: 1, title: Test, sound: default, content_available: true, body: Test, priority: high}, from: null, messageId: 1605712915327723, mutableContent: false, notification: {title: Test, titleLocArgs: [], titleLocKey: null, body: Test, bodyLocArgs: [], bodyLocKey: null}, sentTime: null, threadId: null, ttl: null}
If I set the badge to 0, the app icon badge will be cleared, but it will not be displayed when I receive a new notification.
Flutter doctor
Run flutter doctor and paste the output below:
Click To Expand
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 1.22.4, on Mac OS X 10.15.7 19H15 darwin-x64, locale zh-Hant-TW)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 12.1)
[✓] Android Studio (version 4.1)
[✓] VS Code (version 1.51.1)
[✓] Connected device (1 available)
• No issues found!