Can anyone help me with code required to enable fcm notification sound in xamarin forms ios app?
Asked
Active
Viewed 602 times
0
-
https://stackoverflow.com/help/how-to-ask – ToolmakerSteve Jan 03 '22 at 15:08
2 Answers
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
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
- 14,062
- 5
- 43
- 240