Whenever I kill my android app (removing it from tasklist), I am not able to receive GCM notifications even when priority is high.
Here is my json array
$fields = array(
'registration_ids' => $registatoin_ids,
'data' => $message,
'priority' => "high",
'delay_while_idle' => false,
'time_to_live' => 86400 // time in seconds (24 hours)
);
You see I have set its priority to high. My app is working fine and I receive GCM notifications too, but only when it is in a task list or running in background.
Please help me.
I have tried to get through this thread
device doesn't receive notification if application is stopped
but that doesn't solved my problem.