ToothlessGear / node-gcm

A NodeJS wrapper library port to send data to Android devices via Google Cloud Messaging
https://github.com/ToothlessGear/node-gcm
Other
1.3k stars 208 forks source link

notification banner doesn't appear #265

Closed billidani7 closed 7 years ago

billidani7 commented 7 years ago

I send notification to my iOS testing device using this lilbray and the notification banner doesn't appear. The app is in background. When i bring the app to foreground i can see the notification at the logs.

var message = new gcm.Message();
message.addNotification('body', 'World');

Below is the debugger output

{
    aps =     {
        alert = World;
    };
    "gcm.message_id" = "0:1470923226991394%1947ecfe1947ecfe";
}

When I try to send form firebase console , the notification appears successfully with banner at the lock screen of my phone.

billidani7 commented 7 years ago

The problem fixed with priority: 'high'.

hypesystem commented 7 years ago

Great that you fixed your problem :smile: