I spent a lot of time to groped to solve the problems related to GCM
and the backwardness of push notifications.
My Android App receives push messages but also after 24 hours that have been shipped through my PHP
server with CURL
function.
I already tried to set the time_to_live to 0 or 86400 and delay_while_idle both true to false without any kind of feedback, messages continue to arrive late.
I have already tried the Push Notification Fixer then setting the sending heartbeat every 5 minutes without any benefit.
I imagined that if the device in standby (so with outstanding Internet) via a scheduled task (timer, AlarmManager
or other ..) when sending the heartbeat maintained active connection to the Internet device (so let's say every 5 minutes) may receive message.
But how long it is necessary that the connection is active because GCM
notices that the device is online and send messages in the queue?
This problem also afflicts FCM
as well as GCM
?
Thank you.