Comments (6)
It should be possible to track how many notifications are displayed in a group using the DISMISSED
events, and when the group gets to 1, delete the group via cancelNotification(groupId)
and redisplay the last notification.
from notifee.
Code that reproduces the issue:
const androidChannelId = await notifee.createChannel({
id: "default",
name: "Default Channel",
sound: "default",
importance: Importance.HIGH,
});
await notifee.displayNotification({
title: "group",
id: "group-id",
subtitle: "subtitle",
android: {
channelId: androidChannelId,
groupSummary: true,
groupId: "group-id",
smallIcon: "notification_icon",
color: "#ffcc11",
groupAlertBehavior: AndroidGroupAlertBehavior.CHILDREN,
pressAction: {
launchActivity: "default",
id: "default",
},
},
});
await notifee.displayNotification({
id: "notification-id",
title: "title",
subtitle: "hello",
body: "body",
android: {
importance: Importance.HIGH,
channelId: androidChannelId,
color: "#ffcc11",
smallIcon: "notification_icon",
groupId: "group-id",
},
});
await notifee.cancelNotification("notification-id");
from notifee.
@helenaford that could work, but I feel like it could be nice if it was taken care of on the library level. Seems like a lot of logic, and that anyone who uses groups would need to reimplement
from notifee.
@yotam-nots It only occurs if you are using groups with cancelNotification. Not sure how much this happens, maybe it's common feature... something we can look into.
from notifee.
thanks!
possibly related: maybe the (missing?) tag functionality could help here?
from notifee.
Please reopen if this is still an issue.
from notifee.
Related Issues (20)
- How to remove USE_FULL_SCREEN_INTENT? HOT 14
- Android 14: Local push notifications don't disappear until user dismiss or touch them HOT 1
- Object literal may only specify known properties, and 'inAppNotificationSettings' does not exist in type 'IOSNotificationPermissions' HOT 1
- Declaration USE_FULL_SCREEN_INTENT permission HOT 3
- IOS & ANDROID: Not able to get quick actions when app is in background or kill/quit state HOT 2
- [iOS] Timestamp trigger notifications arrive at incorrect time after device timezone change HOT 2
- [iOS] add openNotificationSettings HOT 1
- [Android] description of permissions used HOT 2
- Not able to retrieve data when app is in kill/background mode to navigate to specific screen HOT 1
- Is there any plan to support MessagingStyle Notification on android like communication Notification on iOS? HOT 6
- Trigger notifications not coming up at scheduled time and background listener not working consistently HOT 1
- [Android] add default constructor of NotifeeAlarmManager HOT 1
- [Android] Foreground Service works fine on dev build but looks like do nothing on a preview build HOT 2
- [iOS] Foreground APNS notification not triggering listener / not handled HOT 4
- Notifee Triggering Cached Notifications HOT 1
- getInitialNotification() not working in iOS neither notifee's nor Firebase's. HOT 7
- [Android] onForegroundEvent or onBackgroundEvent not triggering when clicking push notifications HOT 2
- Android API 34: Crash issue HOT 7
- [Android] [FSI] APK install Full Screen Intent Permission Not Automatically granted HOT 1
- onBackgroundEvent is not working on latest android 14 versions. HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from notifee.