0

Can anyone help me with code required to enable fcm notification sound in xamarin forms ios app?

kajal pokale
  • 69
  • 1
  • 7

2 Answers2

1

This issue is resolved. In notification payload from backend, sound parameter was not mentioned there. Added sound="default" parameter in notification object, and it is working now.

kajal pokale
  • 69
  • 1
  • 7
0
  1. Prepare a sound file , the type should be aiff, wav, caf , and must be under 30 seconds when played.

  2. Place it in in your app bundle or in the Library/Sounds folder of your app’s container directory.

  3. Specify sound key in payload, the value is the file name.

Refer to

https://developer.apple.com/library/archive/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/SupportingNotificationsinYourApp.html#//apple_ref/doc/uid/TP40008194-CH4-SW10

https://firebase.google.com/docs/cloud-messaging/http-server-ref#notification-payload-support

How to config Firebase Push notification Message

ColeX
  • 14,062
  • 5
  • 43
  • 240