react-native-webrtc / react-native-webrtc/react-native-incall-manager
startRingtone() does not start playing ringtone when I receive an incoming call(IOS)
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 597
- Forks
- 201
- Avg merge
- 2h 42m
- Merged PRs (30d)
- 1
Description
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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the iOS behavior with InCallManager.startRingtone('BUNDLE') and compare the logged AVAudioSession setup with whether audio is actually emitted. Inspect the iOS startRingtone path and verify that the bundled ringtone resource is loaded; done means an incoming-call ringtone is audible.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, react-native
- Domain
- audio-video-rtc, mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100