Can anyone help me with code required to enable fcm notification sound in xamarin forms ios app?
Asked
Active
Viewed 202 times
0
-
https://stackoverflow.com/help/how-to-ask – ToolmakerSteve Jan 03 '22 at 15:08
2 Answers
0
Prepare a sound file , the type should be
aiff, wav, caf, and must be under 30 seconds when played.Place it in in your app bundle or in the
Library/Soundsfolder of your app’s container directory.Specify
soundkey in payload, the value is the file name.
Refer to
https://firebase.google.com/docs/cloud-messaging/http-server-ref#notification-payload-support
ColeX - MSFT
- 12,883
- 4
- 34
- 229
0
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
- 1
- 3