function _firebase_addMandatoryFields in Firebase Push Notification (FCM) 7
Adds mandatory fields to payload.
Parameters
string $token: Device token.
Return value
array Mandatory payload.
1 call to _firebase_addMandatoryFields()
- _firebase_buildMessage in ./
firebase.module - Builds the push notification body.
File
- ./
firebase.module, line 194
Code
function _firebase_addMandatoryFields($token) {
// This is the core notification body.
$message['to'] = $token;
$message['priority'] = 'high';
return $message;
}