updated-packages

This commit is contained in:
RafficMohammed
2023-01-08 00:13:22 +05:30
parent 3ff7df7487
commit da241bacb6
12659 changed files with 563377 additions and 510538 deletions

View File

@@ -10,7 +10,7 @@ Also, facades provide useful methods to filter successful and invalid tokens fro
### The Response
```
``` php
$response->getParsedResponses();
$response->getOriginalResponses();
$response->getPushCollection();
@@ -18,7 +18,7 @@ $response->getPushCollection();
### Android facade
```
``` php
$android_api_key = 'key';
//get tokens list from your service
@@ -56,7 +56,7 @@ die(dump($response, $invalidTokens, $successfulTokens));
### APNS facade
```
``` php
$certificatePath = 'cert.pem';
$passPhrase = '';
@@ -102,4 +102,4 @@ die(dump($response, $feedback, $invalidTokens, $successfulTokens));
* [GCM (FCM) adapter](https://github.com/Ph3nol/NotificationPusher/blob/master/doc/gcm-fcm-adapter.md)
* [Create an adapter](https://github.com/Ph3nol/NotificationPusher/blob/master/doc/create-an-adapter.md)
* [Push from CLI](https://github.com/Ph3nol/NotificationPusher/blob/master/doc/push-from-cli.md)
* Facades
* Facades

View File

@@ -5,6 +5,9 @@
[GCM](http://developer.android.com/google/gcm/gs.html) adapter is used to push notification to Google/Android devices.
[FCM](https://firebase.google.com/docs/cloud-messaging/) is supported. Please see [this comment](https://github.com/Ph3nol/NotificationPusher/pull/141#issuecomment-318896948) for explanation.
##### Important
Parameter `notificatinData` is mandatory for sending messagev via FCM.
### Custom notification push example
``` php
@@ -78,4 +81,4 @@ foreach($push->getResponses() as $token => $response) {
* GCM (FCM) adapter
* [Create an adapter](https://github.com/Ph3nol/NotificationPusher/blob/master/doc/create-an-adapter.md)
* [Push from CLI](https://github.com/Ph3nol/NotificationPusher/blob/master/doc/push-from-cli.md)
* [Facades](https://github.com/Ph3nol/NotificationPusher/blob/master/doc/facades.md)
* [Facades](https://github.com/Ph3nol/NotificationPusher/blob/master/doc/facades.md)