We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2fee18e commit f6ed0faCopy full SHA for f6ed0fa
src/FirebaseMessage.php
@@ -60,13 +60,40 @@ public function title($value)
60
return $this;
61
}
62
63
+ /**
64
+ * Set notification sound
65
+ *
66
+ * @param string $value
67
68
+ * @return $this
69
+ */
70
public function sound($value = 'default')
71
{
72
$this->notification->setSound($value);
73
74
75
76
77
78
+ * Set badge number
79
80
+ * @param int $integer
81
82
83
84
+ public function badge($integer)
85
+ {
86
+ $this->notification->setBadge($integer);
87
+
88
+ return $this;
89
+ }
90
91
92
+ * Set additional data
93
94
+ * @param array $values
95
96
97
public function data(array $values = [])
98
99
$this->data = $values;
0 commit comments