In a multicast GCM trigger, I want to send different payload to each user. My GCM json corresponding array is as follows:
$fields = array(
'collapse_key' => 'demo',
'registration_ids' => $registration_ids,
'data' => array('myjson' => 'abc'),
);
Consider the registeration_ids array as follows:
$registration_ids => array('id1','id2','id3');
With the above mentioned GCM json corresponding array, all the users get same value of 'myjson'. Is there any way that i can design the json corresponding array such that 'id1' gets 'abc' as the value of 'myjson', 'id2' gets 'def' as the value of 'myjson'... and so on?