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: src/routes/docs/products/messaging/messages/+page.markdoc
+76-39Lines changed: 76 additions & 39 deletions
Original file line number
Diff line number
Diff line change
@@ -117,12 +117,12 @@ Here are the different components that make up a message.
117
117
* The title of the push notification. This is the headline text that recipients see first.
118
118
---
119
119
* `title`
120
-
* required
121
-
* The title of the push notification. This is the headline text that recipients see first.
120
+
* optional
121
+
* The title of the push notification. This is the headline text that recipients see first. Can be omitted for background notifications.
122
122
---
123
123
* `body`
124
-
* required
125
-
* The main content or body of the push notification. Provides the details or message you want to convey.
124
+
* optional
125
+
* The main content or body of the push notification. Provides the details or message you want to convey. Can be omitted for background notifications.
126
126
---
127
127
* `data`
128
128
* optional
@@ -150,7 +150,19 @@ Here are the different components that make up a message.
150
150
---
151
151
* `badge`
152
152
* optional
153
-
* Sets the number to display next to the app's icon, indicating the number of notifications or updates. Setting to 0 removes any existing badge. This is for Apple devices only.
153
+
* Sets the number to display next to the app's icon, indicating the number of notifications or updates. Setting to 0 removes any existing badge. Must be an integer. For Apple devices only.
154
+
---
155
+
* `contentAvailable`
156
+
* optional
157
+
* For iOS devices only. When set, wakes up the app in the background without showing a notification. Used to update app data remotely. Requires priority to be set to normal. **Note:** APNS may throttle if sending more than 2-3 background notifications per hour. For Android, similar functionality can be achieved by sending a data-only notification without title and body.
158
+
---
159
+
* `critical`
160
+
* optional
161
+
* For iOS devices only. Marks the notification as critical to bypass silent and do not disturb settings. Requires the app to have the critical notification entitlement from Apple.
162
+
---
163
+
* `priority`
164
+
* optional
165
+
* Sets notification priority to normal or high. Normal priority delivers at the most convenient time based on battery life and may group notifications. High priority delivers immediately.
0 commit comments