Push Notifications Expo Stacking Problem

#1

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.

#2

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.

1 Like
#3

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?

#4

@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.

1 Like
#5

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.