Can you post the results? I am experiencing a similar problem with devices not receiving the message the next day - am using nodejs to send to topics via REST (basically the same code as from the B4J solution)
Hello
@andyr00d ,
After more than 2 years experiencing Firebase Cloud Messages with Android devices I noticed the follow situations:
- Not all the messages will arrive. If the device is off line when the message is sent, it can or not arrive later. There is not a default behavior to define when the messages will be queued and sent later. Sometimes, when the device is on line again, it receives a queue of messages sent in the past... sometimes no.
- In some devices the battery management will avoid the messages to arrive due at least two reasons:
1. The Firebase service in app is put in "sleep" state by Android by the battery management tool OR
2. The network communication of the device is fully or partially turned off (abou the "partial" turn off I could notice that in some specific situations in Samsung devices the internet communication "from" the device is working BUT it's not receiving push notifications)
- There is some special features in Android those are accessible only by the "great developers" - like Facebook, Google and Microsoft. The common developer (like us) is limited to the public resources (unfortunately). The existence of these "special resources" available only for the "big ones" was already discussed some times in this forum and there is no anything to do about this. Apparently with these special methods is possible to build more robust and fail proof apps...
My advice for you is this situation for Firebase. Use the FCM to wake up the device and create a message queue that can be called by the app (using a POST method and database) to recover the messages. That's it what's working for me.
Regards!