File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -145,10 +145,12 @@ export const coordinateSendingPushNotifications = internalMutation({
145145 return {
146146 message : {
147147 to : n . token ,
148- sound : n . metadata . sound ?? "default" ,
149148 title : n . metadata . title ,
149+ subtitle : n . metadata . subtitle ?? undefined ,
150150 body : n . metadata . body ?? undefined ,
151+ sound : n . metadata . sound ?? "default" ,
151152 data : n . metadata . data ?? undefined ,
153+ categoryIdentifier : n . metadata . categoryIdentifier ?? undefined ,
152154 } ,
153155 _id : n . _id ,
154156 } ;
@@ -193,10 +195,12 @@ export const action_sendPushNotifications = internalAction({
193195 v . object ( {
194196 message : v . object ( {
195197 to : v . string ( ) ,
196- sound : v . string ( ) ,
197198 title : v . string ( ) ,
199+ subtitle : v . optional ( v . string ( ) ) ,
198200 body : v . optional ( v . string ( ) ) ,
201+ sound : v . string ( ) ,
199202 data : v . optional ( v . any ( ) ) ,
203+ categoryIdentifier : v . optional ( v . string ( ) ) ,
200204 } ) ,
201205 _id : v . id ( "notifications" ) ,
202206 } )
Original file line number Diff line number Diff line change @@ -3,9 +3,11 @@ import { ObjectType, v } from "convex/values";
33
44export const notificationFields = {
55 title : v . string ( ) ,
6+ subtitle : v . optional ( v . string ( ) ) ,
67 body : v . optional ( v . string ( ) ) ,
78 sound : v . optional ( v . string ( ) ) ,
89 data : v . optional ( v . any ( ) ) ,
10+ categoryIdentifier : v . optional ( v . string ( ) ) ,
911} ;
1012
1113export type NotificationFields = ObjectType < typeof notificationFields > ;
You can’t perform that action at this time.
0 commit comments