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
Copy file name to clipboardExpand all lines: README.md
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -84,6 +84,7 @@ class AccountApproved extends Notification
84
84
->iOS()
85
85
->badge(1)
86
86
->sound('success')
87
+
->meta(['foo' => 'bar'])
87
88
->body("Your {$notifiable->service} account was approved!");
88
89
}
89
90
}
@@ -99,6 +100,7 @@ class AccountApproved extends Notification
99
100
-`title('')`: Accepts a string value for the title.
100
101
-`body('')`: Accepts a string value for the body.
101
102
-`sound('')`: Accepts a string value for the notification sound file. Notice that if you leave blank the default sound value will be `default`.
103
+
-`meta([...])`: Accepts an array of custom data to be sent along with the push message. Works for both platforms. See more at [Pusher Beams - Adding metadata to a notification](https://pusher.com/docs/beams/guides/publishing-to-multiple-devices)
102
104
-`icon('')`: Accepts a string value for the icon file. (Android Only)
103
105
-`badge(1)`: Accepts an integer value for the badge. (iOS Only)
104
106
-`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