Ad

FCM Custom Sound Notifications Are Not Working On IOS Xcode

I'm developing a Flutter application for both Android and IOS. I'm sending to my users custom sound notifications using Firebase Cloud Messaging (FCM).

On Android everything is just fine, I'm receiving notifications with custom sounds. However, on IOS I'm receiving the notifications, but with default sound.

I have configured my Xcode as the following:

enter image description here

What am I doing wrong?

Ad

Answer

Your sound files should be plain directly to the Copy Bundle Resources (and not in the assets folder).

enter image description here

Ad
source: stackoverflow.com
Ad