After sent the notification using Push.send, I should use the addListener('message') callback to get the notification? Or it should work just using the send method?
In this demo it uses some cordova plugins in this file and in the client file the message hook display it locally. But this is the right approach?
In my phone, without the message hook I don't receive nothing in my phone... Is this needed or I'm doing something wrong @raix ?
After sent the notification using
Push.send
, I should use theaddListener('message')
callback to get the notification? Or it should work just using thesend
method?In this demo it uses some cordova plugins in this file and in the client file the
message
hook display it locally. But this is the right approach?In my phone, without the
message
hook I don't receive nothing in my phone... Is this needed or I'm doing something wrong @raix ?