iosswiftfirebasefirebase-notifications

No sound for the Firebase remote notification in Swift


I'm new in iOS development and I'm trying to solve a problem when I send a new notification from my Firebase console to my app there is no sound !

The way to know is to open my phone then I see the notification but there is no sound when the notification arrived !

My code looks exactly like Firebase pre-made code:

https://github.com/firebase/quickstart-ios/blob/master/messaging/MessagingExampleSwift/AppDelegate.swift

And i added in my plist.info :

Required background modes : App downloads content in response to push notifications


Solution

  • Make sure you have enabled the advanced options in the Firebase console and make

    Sound : Enabled

    iOS badge : Enabled

    Badge Count : 1

    And this should solve your problem