@@ -26,12 +26,13 @@ To get the latest version of Laravel-FCM on your project, require it from "compo
26
26
27
27
Or you can add it directly in your composer.json file:
28
28
29
-
30
- {
31
- "require": {
32
- "brozot/laravel-fcm": "1.2.*"
33
- }
34
- }
29
+ ``` json
30
+ {
31
+ "require" : {
32
+ "brozot/laravel-fcm" : " 1.2.*"
33
+ }
34
+ }
35
+ ```
35
36
36
37
37
38
### Laravel
@@ -148,16 +149,17 @@ $downstreamResponse->numberSuccess();
148
149
$downstreamResponse->numberFailure();
149
150
$downstreamResponse->numberModification();
150
151
151
- //return Array - you must remove all this tokens in your database
152
+ // return Array - you must remove all this tokens in your database
152
153
$downstreamResponse->tokensToDelete();
153
154
154
- //return Array (key : oldToken, value : new token - you must change the token in your database )
155
+ // return Array (key : oldToken, value : new token - you must change the token in your database)
155
156
$downstreamResponse->tokensToModify();
156
157
157
- //return Array - you should try to resend the message to the tokens in the array
158
+ // return Array - you should try to resend the message to the tokens in the array
158
159
$downstreamResponse->tokensToRetry();
159
160
160
- // return Array (key:token, value:errror) - in production you should remove from your database the tokens
161
+ // return Array (key:token, value:error) - in production you should remove from your database the tokens
162
+ $downstreamResponse->tokensWithError();
161
163
```
162
164
163
165
#### Sending a Downstream Message to Multiple Devices
@@ -186,19 +188,21 @@ $downstreamResponse->numberSuccess();
186
188
$downstreamResponse->numberFailure();
187
189
$downstreamResponse->numberModification();
188
190
189
- //return Array - you must remove all this tokens in your database
191
+ // return Array - you must remove all this tokens in your database
190
192
$downstreamResponse->tokensToDelete();
191
193
192
- //return Array (key : oldToken, value : new token - you must change the token in your database )
194
+ // return Array (key : oldToken, value : new token - you must change the token in your database)
193
195
$downstreamResponse->tokensToModify();
194
196
195
- //return Array - you should try to resend the message to the tokens in the array
197
+ // return Array - you should try to resend the message to the tokens in the array
196
198
$downstreamResponse->tokensToRetry();
197
199
198
- // return Array (key:token, value:errror ) - in production you should remove from your database the tokens present in this array
200
+ // return Array (key:token, value:error ) - in production you should remove from your database the tokens present in this array
199
201
$downstreamResponse->tokensWithError();
200
202
```
201
203
204
+ > Kindly refer [ Downstream message error response codes] ( https://firebase.google.com/docs/cloud-messaging/http-server-ref#error-codes ) documentation for more information.
205
+
202
206
### Topics Messages
203
207
204
208
A topics message is a notification message, data message, or both, that you send to all the devices registered to this topic.
0 commit comments