Ionic push false error *FIXED

I am running this php code below but the push message is just showing FALSE. what am I doing wrong here.

$yourApiSecret = " ";
$AppId = " ";
$data = array(
“user_ids” => [‘174’],
“notification” => “You have a new message.”
$data_string = json_encode($data);
$ch = curl_init(‘’);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, “POST”);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data_string);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
‘Content-Type: application/json’,
'X-Ionic-Application-Id: '.$AppId,
'Content-Length: ’ . strlen($data_string),
'Authorization: Basic '.base64_encode($yourApiSecret)

$result = curl_exec($ch);

$message = new stdClass();
$message->alert = ‘You have a new message’;
I wasnt making it into an object