dpa99c / cordova-plugin-firebasex

Cordova plugin for Google Firebase
MIT License
570 stars 457 forks source link

iOS custom or any notification sounds not working - no sounds at all. #877

Closed Fever905 closed 1 month ago

Fever905 commented 1 month ago

Bug report

CHECKLIST

Current behavior:

Not getting any notification sounds on IOS 17 (17.1.4) -- not even default notification sound.

Expected behavior:

Should make a sound when a notification comes in.

Steps to reproduce:

Send a notification.

Screenshots

Environment information

I have created the sound files in the correct format and I'm certain this used to work.

Runtime issue

iOS build issue:

Other information:

Is anyone else having this issue? I'm testing also on an iPad 4th gen and no sound at all. Sound is enabled in the settings app under Notifications and specific for my app.

Fever905 commented 1 month ago

Figured it out, the docs are wrong - the sound has to be in the notification part:

{ "to": "myToken", "notification": { "body": "test", "title": "test", "sound": "mycustom.caf" }, "priority": "high" }