react-native-webrtc / react-native-voip-push-notification

React Native VoIP Push Notification - Currently iOS only
ISC License
211 stars 82 forks source link

doesn't play custom sound #43

Closed MuhammadAdnanRiaz closed 4 years ago

MuhammadAdnanRiaz commented 4 years ago

i tried .aiff, .mp3 format and placed my audio in resource/ and setting the audio name to soundName presentLocalNotification({soundName: 'azan_1.mp3'}), but it still playing the default sound can anyone give clear instruction how to set custom sound when notification arrive as there is no detail provide in package instruction

MuhammadAdnanRiaz commented 4 years ago

i fixed it by putting my sound file in root of xcode project Screenshot 2019-10-22 at 12 15 58 PM

mofolo commented 3 years ago

Just to add to this, custom sounds only work for Local Notifications, not VOIP Pushes. Callkit will always play the ringtone set in the users settings under: Settings > Sounds > Ringtones