After migrating to Firebase, i tested sending notification by using the firebase console it works fine, but i need a daily notification on a specific time so instead of using th
I added notification
object in my json.
I found out that in my remoteMessage.getNotification().getBody()
it returns null that's why it doesn't receive any notification send by my cron.
Edit
Here's my json object
$message = array(
'registration_ids' => $registrationIDs,
'notification' => array(
"title" => $id,
"body" => $messageText,
"icon" => "name_of_icon" ),
'data' => array(
"message" => $messageText,
"id" => $id,
),
);