Question:
Whenever I send a new notification to an Android device, the previous one is replaced by the new one, so only one notification is shown at a time.
Answer:
This is the default behaviour of the Pushwoosh Android SDK: multi-notification mode is disabled by default, so the last received notification replaces the previous one.
To keep several notifications in the tray at the same time, enable multi-notification mode.
Option 1 — AndroidManifest.xml (recommended)
<meta-data
android:name="com.pushwoosh.multi_notification_mode"
android:value="true" />
Option 2 — at runtime
PushwooshNotificationSettings.setMultiNotificationMode(true);
See Customize Android SDK for the full list of configuration flags.
Note that with multi-notification mode enabled the notifications are grouped by Android into a bundle; if you additionally send the same collapse_key for several messages, Android will still collapse them into one.
Comments
0 comments
Please sign in to leave a comment.