Closed sunojvijayan closed 8 years ago
All you need is outgoing port 443 (as we connect via GCM's HTTPS connection server).
However, it's possible that there's something else going on -- maybe your server doesn't trust the remote certificate because of missing or outdated CA certificates.
Are you sure that you aren't getting back an error in the sender.send()
callback?
Please share your code so we can see if there are any hidden issues with it, @sunojvijayan :-)
We have node-gcm running in AWS and it works fine for us :)
My bad. Now its working. Sorry.
@sunojvijayan can you please tell us how you resolved the issue, if anyone else encounters it?
I am Sorry I am not sure what happened. But initially i ran the server using node command and it was not working. But after some time i ran it using forever and everything was working. Now even if I use node to run it it works.
I am facing another issue though. Not sure if its supposed to work like this, thats why I am not raising another issue request. But when I push and if the phone has been idle for sometime it wont show notification until I unlock the phone. Is this normal?
Sorry again. I got that too made delayWhileIdle: false and that works too. Thank you all for your help. Much appreciated.
I have everything working from my laptop. Great job by the way. But when I try running the same code from an aws instance it's showing that it's a success but I am not getting any message. Do I have to open any additional port. Please help.