Hi, I am trying to develop a chatting app. I am using Expo push notification, it works but the problem is when there are a lot of chat, there is a lot of notifications received by client. Is there anyway to make the notification into single one like: “10 messages” to be pushed to the client?
And is there anyway to remove the notification from the app client if they are in foreground?
Thanks.
There is no notification collapsing. On iOS you can clear the list of notifications by setting the badge count to 0. On Android the notifications currently always show up in the foreground right now.
Oh. thanks for answering. Now I know the terminology for it. Is there any future plan to allow notification collapsing in the future with expo push notifications?
@adhicl @ide quick note - you can actually collapse notifications on Android by setting notification.androidMode
to collapse
: https://docs.expo.io/versions/v19.0.0/guides/configuration.html#androidmode
Can’t do anything for iOS though.
Wow @boost thank you very much. Works like a charm. For Android for now is enough for me. I can wait for the IOS later.
the link is broken. can be found here: https://docs.expo.io/versions/v32.0.0/workflow/configuration/#notification
Where exactly, I do not find the collapse section!?
You can find it in the app.json
notification.androidMode
new link
Any update on this?