Grouping of Push Notifications using PushApps in android? - android

I have implemented push notifications via PushApps.
My requirement is that, if user get multiple notifications then i need to show as a single notification with number of notifications counts.
PushManager.getInstance(getApplicationContext()).setShouldStackNotifications(false);
Grouping is working fine with above line but number of notification count are not displaying.
Please suggest me something.
Thanks.

Related

Remove firebase notification from android device (sever side)

I am using firebase for notification. I want to send notification to the group of users... If any one of them press accept notification action button then, the same notification must be remove from the other users device. Is it possible to do using firebase.
Ex. I want to send notification to 5 delivery boys for collecting parcel from XYZ place, if any of them accept the collecting parcel order notification then the same notification must be remove from other 4 delivery boys autometically.
I study and practically done an example of https://firebase.google.com/docs/cloud-messaging/android/device-group Notification send to all 5 del. boys but notification still there after accepting the collecting order.
Please, help.
Firebase Cloud Messaging has two distinct types of messages:
Notification messages that are handled and displayed by the OS when the app is not active, and handled by your application code when the app is active.
Data messages that are always handled by your application code, which can then choose to display or update UI notifications as needed.
What you're describing sounds like you want to use data messages only, and then use Android's notification UI/API to display, update, or hide a notification.

Mass push notification sending in some intervals

I am trying to figure out how Facebook / Twitter sends push notifications like "You have 20 new followers"I don't know how to call it but i want to learn the underlying algorithm of this in Android. Please help, Thanks !
On Android you can execute your code before actually showing a push notification. They could simply send a push notification to all devices with an identifier, then the app can make a request to the server and get the needed information in order to show the push notification.
They can also send one push notification per device, as they can associate the push notification key with the user login, and the server would fire a push notification every time there is an event that demands a push notification.
But there are also other ways of doing this, for example, they can, for example run locally in background and create a local notification when the app decides it is necessary.

Display multiple push notifications like multiple SMS on Android?

I am able to show total push notifications count on top bar but still looking for displaying each notification on top bar. Currently, it shows total count and last notification received. I want to show all notifications like total SMS count and each SMS displayed in Android. Immediate response will be highly appreciated. Thanks
You have to setup somehow a counter that will be your notification ID. If the id is different on each notification, you'll be able to show it all on the notification bar. More on Notifications here and here

Parse Android Push Do not display notification

I'm using Parse to send push messages to my app. In some cases I want to show a notification however in some cases I don't. For example when data should be updated I intend to send a notification to all devices so that way they don't have to poll. This should not show any notification.
Parse's GcmBroadcastReceiver seems to always generate a notification without any way of turning that off.
I'm also curious of how to stop Parse from auto-creating a notification because at some point I'm going to want to work with more complex notifications, which Parse doesn't support.
I've tried creating my own GcmBroadcastReceiver however when I did that I didn't receive anything. Maybe I rigged it wrong? Other than that how can I stop Parse SDK from auto-generating a notification?
Omit alert and title from your push notification and the parse.com android SDK will not create a notification.

How to show multi notifications in android device

I'm Navis, I come from VietNamese and I'm a newbie in android developer.
When i make an application i have a problem with Notification in android.
I used C2DM service to integrate push messages for my app. And when receive message from C2DM server, i want my app show information in notification separated. 1 message show in 1 notification. But when i test app, i push message to my android devices, it only show 1 notification. For example, i push 3 message (1, 2, 3). App will display 1 the same position (only update content). So, how can i display in 3 notification separated?
Thanks for your help!
My guess is that you are passing the same id to notify api.
Change the ID to different one to show different notifications instead of replacing
mNotificationManager.notify(_ID, notification);

Categories

Resources