react-native-incall-manager
react-native-incall-manager copied to clipboard
startRingtone() does not start playing ringtone when I receive an incoming call(IOS)
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
InCallManager.startRingtone({ringtone: 'BUNDLE'}) try with this code, it work for me
still existing...
do we have any update on this issue i am facing the same issue, Any suggestion?
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?
Does it work on iOS emulator?