Skip to content

Commit 1068132

Browse files
committed
fix: allow background push notifications by making title optional in sendPushNotifications
1 parent 587e7aa commit 1068132

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/component/schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { v } from "convex/values";
55
export const notificationFields = {
66
_contentAvailable: v.optional(v.boolean()),
77
data: v.optional(v.any()),
8-
title: v.string(),
8+
title: v.optional(v.string()),
99
body: v.optional(v.string()),
1010
ttl: v.optional(v.number()),
1111
expiration: v.optional(v.number()),

0 commit comments

Comments
 (0)