Skip to content
This repository was archived by the owner on Jun 28, 2024. It is now read-only.

Commit 328b149

Browse files
authored
Update README.md
1 parent b9191b5 commit 328b149

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Laravel-FCM (maintained version of the abandonned "official" repository)
1+
# Laravel-FCM (added support for multiple FCM account on code-lts/Laravel-FCM repository)
22

33
![Run tests](https://github.com/code-lts/Laravel-FCM/workflows/Run%20tests/badge.svg?branch=main)
44
[![Coverage Status](https://codecov.io/gh/code-lts/laravel-fcm/branch/main/graph/badge.svg)](https://codecov.io/gh/code-lts/laravel-fcm)
@@ -157,7 +157,7 @@ $data = $dataBuilder->build();
157157

158158
$token = "a_registration_from_your_database";
159159

160-
$downstreamResponse = FCM::sendTo($token, $option, $notification, $data);
160+
$downstreamResponse = FCM::sendTo($token, $option, $notification, $data, $senderId, $serverKey);
161161

162162
$downstreamResponse->numberSuccess();
163163
$downstreamResponse->numberFailure();
@@ -196,7 +196,7 @@ $data = $dataBuilder->build();
196196
// You must change it to get your tokens
197197
$tokens = MYDATABASE::pluck('fcm_token')->toArray();
198198

199-
$downstreamResponse = FCM::sendTo($tokens, $option, $notification, $data);
199+
$downstreamResponse = FCM::sendTo($tokens, $option, $notification, $data, $senderId, $serverKey);
200200

201201
$downstreamResponse->numberSuccess();
202202
$downstreamResponse->numberFailure();
@@ -271,7 +271,7 @@ $topic->topic('news')->andTopic(function($condition) {
271271

272272
});
273273

274-
$topicResponse = FCM::sendToTopic($topic, null, $notification, null);
274+
$topicResponse = FCM::sendToTopic($topic, null, $notification, null, $senderId, $serverKey);
275275

276276
$topicResponse->isSuccess();
277277
$topicResponse->shouldRetry();
@@ -320,7 +320,7 @@ $notification = $notificationBuilder->build();
320320

321321
$notificationKey = ['a_notification_key'];
322322

323-
$groupResponse = FCM::sendToGroup($notificationKey, null, $notification, null);
323+
$groupResponse = FCM::sendToGroup($notificationKey, null, $notification, null, $senderId, $serverKey);
324324

325325
$groupResponse->numberSuccess();
326326
$groupResponse->numberFailure();

0 commit comments

Comments
 (0)