here is current code, i have idle mode on false but as this works fine on apk1 i beleive nothing is wrong here :
$fields = array(
'registration_ids' => array($xtoks),
'delay_while_idle:false','dry_run:false',
'data' => array( 'message' => $xmess , 'title' => $xtitle, 'key1' =>$test1),
);
$headers = array(
'Authorization: key=' . $apiKey,
'Content-Type: application/json',
);