Questions tagged [node-gcm]
14 questions
5
votes
0 answers
MaxListenersExceededWarning - Loopback
I am getting the following error:
(node:18591) MaxListenersExceededWarning: Possible EventEmitter memory
leak detected. 11 wakeup listeners added. Use emitter.setMaxListeners() to increase limit.
after a script for sending push notifications is…

Phoenix Dev
- 457
- 5
- 19
2
votes
0 answers
Node - gcm send silent notifications
I'm using node-gcm, https://www.npmjs.com/package/node-gcm
But I cannot figure out if I can send silent notifications.
By 'silent' I mean that the app will be notified, but no notifications will be displayed to the user.
Thanks in advance.

David Faizulaev
- 4,651
- 21
- 74
- 124
1
vote
2 answers
Removing no longer valid FCM tokens from a database
I am sending notification to mobile device for which I have fcm tokens.
On sending, I get a response that can for each fcm token have an error.
I want to remove the invalid tokens that for sure will no longer work, but keep tokens that may have…

Charles Rostaing
- 548
- 5
- 17
1
vote
2 answers
Send android notification with node-gcm without collapsing them
I'm sending notifications to an android device using node-gcm, and in some cases, I need to send an image with the notification to display as a thumbnail, like so:
notification with thumbnail
And sometimes I need to send notifications without the…

André Policarpo
- 31
- 7
1
vote
1 answer
registring on gcm multiple time from same device will generate multiple id or same and multiple users on same device
I want to know If I am registering my android app multiple time on gcm from same device will I get different registration id each time or the same one once registered?
Coming onto my second problem which is as below
if user1 logs out and user2 logs…

nurulnabi
- 459
- 3
- 11
1
vote
1 answer
Node-gcm and Nodejs, issues sending images
I currently have a ionic app that can successfully talk to a nodejs server. The app is a notification system using node-gcm. The issue with gcm is that you cannot send images. If you do, then the payload is too large. If you want to send an image,…

Austin Hunter
- 394
- 6
- 22
0
votes
0 answers
Can we send send data type other than string using node-gcm module?
Can we use node-gcm to send any data type other than string e.g - boolean, I read in their documentation but didn't find anything regarding that?
Or is this the only functionality provided by FCM in Android ??

Sudhanshu Gaur
- 7,486
- 9
- 47
- 94
0
votes
1 answer
stop gcm to send notification on old registration id
Suppose that case when the client app has re-registered with the gcm itself but the server is unaware of this and now the server is sending notification to that particular client what I want is the notification should not be sent with the old…

nurulnabi
- 459
- 3
- 11
0
votes
1 answer
How to send and see many push notifications in one android device push notifications menu?
I am currently using node-gcm to send push notifications to android devices. My current problem is, that when I send many push notifications to one device, the newest always goes over the older ones. So it seems to the user that he only got one push…

Xyztor
- 3
- 1
0
votes
3 answers
Firebase shows two notifications on Android
I am struggling to find the cause for the duplicate notification message on android using Firebase, Unity and sending from nodejs with the help of node-gcm.
Here is all relative code:
Unity3d client side I got:
public class PushServiceManager :…

Dmitry Matveev
- 5,320
- 1
- 32
- 43
0
votes
0 answers
Why my ionic app FCMPlugin.onNotification() does not get called for incoming push notifications
I'm using cordova-plugin-fcm for handling push notification subscriptions and watching for incoming notifications.
This was all working when I set it up about a month ago. I still receive push notifications when the app is closed or in the…

Brad W
- 2,540
- 2
- 18
- 28
0
votes
1 answer
Android push does not trigger when app in background after notification clicked
I have a Cordova app, using the push plugin.
On the server I am sending the GCM messages with node-gcm.
I receive notifications just fine, for iOS and Android, and they open the app when clicked, however on Android the 'notification' event does not…

kris
- 11,868
- 9
- 88
- 110
0
votes
1 answer
Browser: Google Cloud Messaging/node-gcm - data is always null
Serverside code:
var message = new gcm.Message({
collapseKey: "demo",
delayWhileIdle: true,
timeToLive: 3,
data: {
test: 'value'
}
});
var sender = new gcm.Sender(config.gcmKey);
var tokens = [];
... (to add tokens)…

James Walker
- 393
- 1
- 3
- 11
0
votes
1 answer
Should arriving GCM messages be displayed by Android?
The problem is that my GCM message arrives at my app but is not (automatically) displayed on screen.
07-06 21:33:11.525 11269-11269/com.example.myapp D/ActivityThread: BDC-Calling onReceive: intent=Intent { act=com.google.android.c2dm.intent.RECEIVE…

fadedbee
- 42,671
- 44
- 178
- 308