Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 424
jode Avatar asked Dec 12 '25 08:12

jode


1 Answers

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

like image 177
cs4alhaider Avatar answered Dec 14 '25 03:12

cs4alhaider



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!