You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Update to latest phpunit and mockery
* Fix test expectations
* Linting
* Test with PHP 7.4
* Remove unnecessary test tear down
* Switch to Beams SDK
* Automatically register service provider
* Update README
* Remove empty values from payload
* Update README to reflect the change to Pusher Beams
* Rename channel class back to PusherChannel
* Update Docblock
[](https://packagist.org/packages/laravel-notification-channels/pusher-push-notifications)
This package makes it easy to send [Pusher push notifications](https://pusher.com/docs/push_notifications) with Laravel.
12
+
This package makes it easy to send [Pusher Beams push notifications](https://pusher.com/docs/beams) with Laravel.
13
+
14
+
Please note that this notification channel should not be confused with Pusher Channels.
15
+
16
+
Also please note that prior to version 2.0, this package integrated with Pusher's beta push notifications service that was part of Pusher Channels. Please see Pusher's [migration guide](https://www.pusher.com/docs/channels/push_notifications/migration-guide) for more information.
13
17
14
18
## Contents
15
19
@@ -33,27 +37,24 @@ You can install the package via composer:
Before using this package you should set up a Pusher account. Here are the steps required.
49
-
50
-
- Login to https://dashboard.pusher.com/
51
-
- Select your app from the sidebar or create a new app.
52
-
- Click on the "Push Notifications" tab.
53
-
- Upload your APNS Certificate or add your GCM API key.
54
-
- Now select the "App Keys" tab.
55
-
- Copy your `app_id`, `key`, and `secret`.
56
-
- Update the values in your `config/broadcasting.php` file under the pusher connection.
42
+
Before using this package you should set up a Pusher Beams account. Here are the steps required.
43
+
44
+
- Login to https://dash.pusher.com/
45
+
- Select the "Beams" product.
46
+
- Select your instance from the list or create a new instance.
47
+
- Click on the "Settings" tab.
48
+
- Upload your APNS Certificate and/or add your FCM Server key.
49
+
- Now select the "Credentials" tab.
50
+
- Copy your `Instance Id`, and `Secret Key`.
51
+
- Add a new entry to in your `config/services.php` file:
52
+
```php
53
+
'pusher' => [
54
+
'beams_instance_id' => 'Your Instance Id',
55
+
'beams_secret_key' => 'Your Secret Key',
56
+
],
57
+
```
57
58
- You're now good to go.
58
59
59
60
## Usage
@@ -93,7 +94,7 @@ class AccountApproved extends Notification
93
94
-`sound('')`: Accepts a string value for the notification sound file. Notice that if you leave blank the default sound value will be `default`.
94
95
-`icon('')`: Accepts a string value for the icon file. (Android Only)
95
96
-`badge(1)`: Accepts an integer value for the badge. (iOS Only)
96
-
-`setOption($key, $value)`: Allows you to set any value in the message payload. For more information [check here for iOS](https://pusher.com/docs/push_notifications/ios/server), [or here for Android](https://pusher.com/docs/push_notifications/android/server).
97
+
-`setOption($key, $value)`: Allows you to set any value in the message payload. See the [request body section of the Pusher Beam docs](https://pusher.com/docs/beams/reference/publish-api#request-body) for more information.
0 commit comments