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 206 forks source link

Send notification when the app is closed #290

Closed amsonline closed 7 years ago

amsonline commented 7 years ago

Hello The plugin works perfectly when the app is open or in background, but when the app is closed, no notification is received by the device. What should I do for that? Is it a problem of the plugin, or Firebase, or did I miss something?

hypesystem commented 7 years ago

Hey!

It's quite hard to help if you don't show any code :-) Could you share an extract (of course commenting out your API key)?

Are you sending a message with the notification field (automatically triggering a notification) or the data field (just sending data)?

Which device are you pushing to (Android or iOS)?

eladnava commented 7 years ago

Closing due to inactivity. Feel free to reopen if you still experience this issue.