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
- included ExpoMessage()->title('') in example because receive an error without it
- included jsonData() in example
- added missing Available Message Methods
use NotificationChannels\ExpoPushNotifications\ExpoChannel;
82
87
use NotificationChannels\ExpoPushNotifications\ExpoMessage;
83
88
use Illuminate\Notifications\Notification;
@@ -94,6 +99,7 @@ class AccountApproved extends Notification
94
99
return ExpoMessage::create()
95
100
->badge(1)
96
101
->enableSound()
102
+
->title("Congratulations!")
97
103
->body("Your {$notifiable->service} account was approved!");
98
104
}
99
105
}
@@ -102,11 +108,13 @@ class AccountApproved extends Notification
102
108
### Available Message methods
103
109
104
110
A list of all available options
105
-
-`body('')`: Accepts a string value for the body.
106
-
-`enableSound()`: Enables the notification sound.
107
-
-`disableSound()`: Mutes the notification sound.
108
-
-`badge(1)`: Accepts an integer value for the badge.
109
-
-`ttl(60)`: Accepts an integer value for the time to live.
111
+
112
+
-`title('')`: Accepts a string value for the title.
113
+
-`body('')`: Accepts a string value for the body.
114
+
-`enableSound()`: Enables the notification sound.
115
+
-`disableSound()`: Mutes the notification sound.
116
+
-`badge(1)`: Accepts an integer value for the badge.
117
+
-`ttl(60)`: Accepts an integer value for the time to live. -`jsonData('')`: Accepts a json string or an array for additional. -`channelID('')`: Accepts a string to set the channelId of the notification for Android devices.
110
118
111
119
### Managing Recipients
112
120
@@ -122,7 +130,7 @@ Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recen
122
130
123
131
## Testing
124
132
125
-
```bash
133
+
```bash
126
134
$ composer test
127
135
```
128
136
@@ -136,8 +144,8 @@ Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
0 commit comments