jode
jode

Reputation: 67

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

Upvotes: 2

Views: 3311

Answers (2)

Ibrahim diab
Ibrahim diab

Reputation: 41

in the Firebase console For your Application When you publish notification go to ---> Additional options and make ---> sound Enabled like image

enter image description here

Upvotes: 4

cs4alhaider
cs4alhaider

Reputation: 1446

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

Upvotes: 8

Related Questions