Skip to content

Commit 2a9c223

Browse files
fix how we pass data
1 parent 69f98ec commit 2a9c223

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

FirebaseNotifications.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,7 @@ public function sendDataMessage($tokens = [], $data, $collapse_key=null, $delay_
8484
{
8585
$body = [
8686
'registration_ids' => $tokens,
87-
'data' => $data
88-
];
87+
]+$data;
8988
if ($collapse_key) $body['collapse_key']=$collapse_key;
9089
if ($delay_while_idle!==null) $body['delay_while_idle']=$delay_while_idle;
9190
if ($other) $body+=$other;

0 commit comments

Comments
 (0)