This issue can occur if your application uses a custom PushwooshNotificationFactory and does not correctly set a notification group ID. When multiple notifications are sent to a device without a proper group ID, the Android system may create an empty summary notification. This can sometimes happen after an SDK update.
There are two ways to resolve this:
1. (Recommended) Update the Pushwoosh SDK
The most reliable solution is to update your Pushwoosh Android SDK to version 6.7.32 or newer. This version includes a fix that automatically assigns a default notification group if one is not provided by your custom factory, preventing the empty notification issue.
2. Manually Set the Group ID in Your Custom Factory
If you are unable to update the SDK immediately, you can fix the issue by modifying your custom PushwooshNotificationFactory. Ensure that you are setting a group ID in your NotificationCompat.Builder.
You can dynamically get the group ID from the push payload data like this:
// Inside your custom PushwooshNotificationFactory
// ... your existing builder code ...
.setGroup(pushData.getGroupId())
// ... rest of your builder code ...
By implementing one of these solutions, Android will correctly group your notifications and avoid displaying empty ones.
Comments
0 comments
Please sign in to leave a comment.