Notification limit dropped to 24 per app in Android 11 notification drawer

Viewed 2443

Is there any limit on the number of notifications the android app can display? I am facing an issue after 24 notifications android notification does not appear.

There is no documentation which states this clearly.

This issue I have observed in Android 11. Looks like this is applicable to android 10 (https://support.google.com/pixelphone/thread/23619509?hl=en). I don't have android 10. So, I have not tested.

Please help me to get a documentation reference for this limit or this behavior can be changed using the settings of the device.

1 Answers

Yes, there is a limit of notifications that can be posted per app. The interesting thing was the number is not fixed and can be controlled by the Device Manufacturer. From my observation, a Google Pixel 3A phone had limited to 25 notifications were as an OnePlus 6T and a Samsung device had limited the notifications to 50.

If we carefully observe the NotificationManagerService.java source code, we can see a variable MAX_PACKAGE_COUNT declared to be 50.

And inside the code, it checks if the count is greater than the MAX_PACKAGE_NOTIFICATIONS, it has a message saying that “Package has. already posted max toasts. Not showing more!” This is the reason we get limited by the number of notifications that are posted per app.

Related