react-native-incall-manager icon indicating copy to clipboard operation
react-native-incall-manager copied to clipboard

startRingtone() does not start playing ringtone when I receive an incoming call(IOS)

Open nero2009 opened this issue 4 years ago • 5 comments
trafficstars

When I call InCallManager.startRingtone('_BUNDLE_'); I expect my phone to play the ringtone when I recive an incoming call on IOS.

The logs suggest that I called InCallManager.startRingtone('BUNDLE'); correctly but I dont hear any ringtone.

Logs

2021-08-20 11:15:28.939125+0100 MyApp[890:264486] RNInCallManager.startRingtone(): type: _DEFAULT_
2021-08-20 11:15:28.944606+0100 MyApp[890:264486] RNInCallManager.storeOriginalAudioSetup(): origAudioCategory=AVAudioSessionCategorySoloAmbient, origAudioMode=AVAudioSessionModeDefault
2021-08-20 11:15:29.061621+0100 MyApp[890:264486] RNInCallManager.startRingtone:ringtoneCategory:: audioSession.setCategory: AVAudioSessionCategorySoloAmbient, withOptions: 0 success
2021-08-20 11:15:29.062718+0100 MyApp[890:264486] RNInCallManager.startRingtone:ringtoneCategory:: audioSession.setMode(AVAudioSessionModeDefault) success

I have placed the ringtone files in the correct folder but still no sound/ringtone on IOS please help

nero2009 avatar Aug 20 '21 10:08 nero2009

InCallManager.startRingtone({ringtone: 'BUNDLE'}) try with this code, it work for me

vuotnguyen avatar Nov 30 '21 09:11 vuotnguyen

still existing...

Daveeeeeeeeee avatar Jun 06 '22 04:06 Daveeeeeeeeee

do we have any update on this issue i am facing the same issue, Any suggestion?

anandpandey2414 avatar Mar 16 '23 14:03 anandpandey2414

For me it works if I open the app. If app is killed it doesn't play ringtone? But in android, it works for both. Any solution?

abdoerrahiem avatar Apr 18 '23 05:04 abdoerrahiem

Does it work on iOS emulator?

Irfanwani avatar Jul 13 '23 12:07 Irfanwani