Pushwoosh Android notification is replaced when new come - android

I am using pushwoosh to send notification from server to devices. And that is working without any problems. Also it is worth mentioning that I am using phonegap/cordova. This problem is only related for android, ios does not has this problem.
Problem is when I send few notifications in short time only one is displayed in android notification area. On notification handle in my code all notification are received. Notifications do not have same title or text.

You need to enable multi-notifications for Android. Look for "setMultiNotificationsMode" here:
https://github.com/Pushwoosh/pushwoosh-android-sdk/blob/master/Documentation/PushManager.md#setmultinotificationmode

You need to enable multi-notifications for Android.
PushManager.setMultiNotificationMode(context);

Related

Firebase push notification is not working properly when device is offline

I am implement a tap action on the notification and then i found out that when i am offline and triggering the notification. and when i am coming to online i am only receiving the last notification. and it is only happening in android
please help
I have read lot of solution but did not found any proper answer.
I assume you've read this then. Check notification's time to live first, and if you're sure that's not the cause, make sure you're using different notification ids for notifications, otherwise you'll replace the currently shown notification with a new one.
Answered a similar post here. This is working as intended as notification messages are always collapsible.

How to do headsup notification on xamarin android?

How can I show the notification as heads up notification on Xamarin Android. I got the notification working, but I don't know how to set to high priority so it can show up even when using other application. I used the plugin Xam.Plugin.Notifier for the NuGet.
In Xamarin.Android, if you want to show heads-up notification, you have to set the priority to High or Max: builder.SetPriority (NotificationPriority.High);
According to the source of Notifier plugin, there is no interface for the user to set the priority, so it does not support heads up notification.
If you really want to use it, I can suggest 2 solutions for you:
1) Post an issue to the author of Notifier Plugin to modify it to support heads-up notification.
2) Create a notification yourself in Xamarin.Android instead of using the plugin.
And in your code, you can write this:
builder.SetPriority (NotificationPriority.High);
or
builder.SetPriority (NotificationPriority.Max);

Avoid autonotification display from GCM using notificacion push in Android

As we know, developing on Android we can handle push notification and show a custom view depending on our logic. But there is a problem, if I send a push notification with a content and title from the server android will auto-display the notification and if I handle them at the same time the phone shows both, mine and the auto-displayed.
How can I disable auto display of the notification in these cases.
Why do I need to do this?
I am using OneSignal to send push notifications for both android and ios. The second one need to receive a content and title to be shown but this is not mandatory for android and I want to be able to show a custom view in this case.
Thanks in advance
You can omit the displaying of the OneSignal notification by the SDK by setting up a NotificationExtenderService per the OneSignal Background Data and Notification Overriding documentation. Use the NotificationExtenderBareBonesExample class example shown in step 2 and return true instead of false to let the SDK know your handling the notification.

Parse Push Notification does not work if app not in background or foreground.

All worked fine with parse push notification. When I am trying to implement a custom push notifier it works only if my app is in foreground or background.
Specifically on Lollipop this happens.
Looking forward for your help.
Don't go with Parse as its going to shutdown in early 2017. I would suggest you to use other Push Platform like OneSignal Push notification OR Urban Airship.
Regarding custom push notifier, can you please explain more what all things you are customizing in push notification message.

Android Silent Push

I am new to android and I'm playing around trying some features here and there.
I wanted to know what is the way to use silent push - meaning get a push notification on the device without any alarm, notification or vibration - i.e. without the user to be aware of it.
If someone have a tutorial he can refer me to I'll be more than gratefull.
The default push in Android (Google Cloud Messaging for Android) is a silent push.
You actually have to write code in order for the push notification to generate a notification, sound or any other effect noticeable by the user.
Read the GCM Guide.

Categories

Resources