I'm currently developing an application that uses expo for push notifications. This app includes a chat feature that notifies the user of each message. The real problem is that these notifications are not collapsing immediately so the user gets a lot of notifications before android automatically decides to collapse.
[App] John Doe
Hello dude.
[App] John Doe
How are you?
[App] John Doe
Pay me!!!
The expected behaviour
[App] John Doe
Hello dude
How are you?
Pay me!!!
It seems like IOS automatically group all your App notifications into one thread. However, on Android you need to set notification.androidMode
to collapse
, which is not set by default.
Take a look at current documentation: https://docs.expo.dev/versions/latest/config/app/#androidmode
app.json
Path: notification.androidMode
Type: enum
Show each push notification individually (default) or collapse into one (collapse).
That will only work in standalone app, nor in Expo Go.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With