Skip to content

Commit 9011099

Browse files
[Change]: Allow to change the notification priority parameter as Expo documentation.
1 parent edeb1e0 commit 9011099

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ A list of all available options
119119
- `ttl(60)`: Accepts an integer value for the time to live.
120120
- `jsonData('')`: Accepts a json string or an array for additional.
121121
- `channelID('')`: Accepts a string to set the channelId of the notification for Android devices.
122+
- `priority('default')`: Accepts a string to set the priority of the notification, must be one of [default, normal, high].
122123

123124
### Managing Recipients
124125

src/ExpoMessage.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,13 +206,13 @@ public function setJsonData($data)
206206
}
207207

208208
/**
209-
* Set the priority of the notification for Android devices, must be one of [default, normal, high].
209+
* Set the priority of the notification, must be one of [default, normal, high].
210210
*
211211
* @param string $priority
212212
*
213213
* @return $this
214214
*/
215-
public function setPriority(string $priority)
215+
public function priority(string $priority)
216216
{
217217
$this->priority = $priority;
218218

0 commit comments

Comments
 (0)