Skip to content
This repository was archived by the owner on May 1, 2020. It is now read-only.

Commit ab6a2b3

Browse files
authored
Merge pull request #12 from CoreProc/develop
Add missing variables in payload. Resolves #11
2 parents 856c2fa + 135ccdd commit ab6a2b3

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

src/FcmMessage.php

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -340,15 +340,17 @@ public function toJson()
340340
public function toArray()
341341
{
342342
return [
343-
'to' => $this->to,
343+
'to' => $this->to,
344344
'registration_ids' => $this->registrationIds,
345-
'condition' => $this->condition,
346-
'collapse_key' => $this->collapseKey,
347-
'priority' => $this->priority,
348-
'time_to_live' => $this->timeToLive,
349-
'dry_run' => $this->dryRun,
350-
'data' => $this->data,
351-
'notification' => $this->notification->toArray(),
345+
'condition' => $this->condition,
346+
'collapse_key' => $this->collapseKey,
347+
'content_available' => $this->contentAvailable,
348+
'mutable_content' => $this->mutableContent,
349+
'priority' => $this->priority,
350+
'time_to_live' => $this->timeToLive,
351+
'dry_run' => $this->dryRun,
352+
'data' => $this->data,
353+
'notification' => $this->notification->toArray(),
352354
];
353355
}
354356
}

0 commit comments

Comments
 (0)