Skip to content

Commit 2b0db15

Browse files
authored
Merge pull request #8 from be-geeky/patch-1
return results to receive notification status
2 parents f9d0143 + cf1eb4a commit 2b0db15

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Fcm.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,9 @@ public function send()
5959
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
6060
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, CURL_IPRESOLVE_V4);
6161
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($fields));
62-
$result = curl_exec($ch);
63-
64-
curl_close($ch);
62+
$result = json_decode(curl_exec($ch));
63+
curl_close($ch);
64+
65+
return $result;
6566
}
6667
}

0 commit comments

Comments
 (0)