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
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -79,6 +79,7 @@ class AccountApproved extends Notification
79
79
->iOS()
80
80
->badge(1)
81
81
->sound('success')
82
+
->meta(['foo' => 'bar'])
82
83
->body("Your {$notifiable->service} account was approved!");
83
84
}
84
85
}
@@ -92,6 +93,7 @@ class AccountApproved extends Notification
92
93
-`title('')`: Accepts a string value for the title.
93
94
-`body('')`: Accepts a string value for the body.
94
95
-`sound('')`: Accepts a string value for the notification sound file. Notice that if you leave blank the default sound value will be `default`.
96
+
-`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)
95
97
-`icon('')`: Accepts a string value for the icon file. (Android Only)
96
98
-`badge(1)`: Accepts an integer value for the badge. (iOS Only)
97
99
-`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