Closed plato-cambrian closed 9 years ago
Possibly relevant https://github.com/ToothlessGear/node-gcm/issues/131
The functionality in #131 was added in version 0.10 (PR #127). I assume this is the code you are using.
I have no idea about AppGyver, etc., so I am at a bit of a loss here.
Thanks @hypesystem. I am using 0.10.
So, assuming a correct reference implementation on the phone, what I'm sending should automatically show up in the notification drawer with body and title, right?
Yes.
I'm trying to deliver chat messages to my mobile app. Here is the generated message, right before I call
sender.send()
:The message is delivered to the phone, and if the app is in the background, a notification pops up in my drawer.
The problem is the notification has no title, and the body string is the json representation of my
message
field.I'm handling the notification with AppGyver/push-notifications. I'm calling
pushNotification.onMessageInBackground(messageInBackgroundHandler,errorHandler);
and logging thenotification
object that these functions get, it looks like this:What must I do to configure my notification?