Skip to content

Commit 675c23a

Browse files
Updated firebase notification payload to include custom noitification params.
1 parent 912f0b3 commit 675c23a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/lib/notifications.ts

+12
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,18 @@ export async function sendNotification(
6666
url: notificationPayload.url,
6767
},
6868
token: subscription.keys.token,
69+
android: {
70+
notification: {
71+
sound: 'notification', // Must match the file name (typically without the extension) in res/raw/
72+
},
73+
},
74+
apns: {
75+
payload: {
76+
aps: {
77+
sound: 'notification', // For iOS, if needed
78+
},
79+
},
80+
},
6981
}
7082

7183
// Send the FCM message using Firebase.

0 commit comments

Comments
 (0)