react-native-webrtc / react-native-webrtc/react-native-callkeep
displayIncoming Call Not Working, hasPhoneAccount returns false.
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.1k
- Forks
- 511
- Avg merge
- 9h 12m
- Merged PRs (30d)
- 2
Description
Bug report
- I've checked the example to reproduce the issue.
We cloned the sample app as well and ran it without any changes,
but the options display incoming call & display incoming call in 3 seconds none showed the native call UI!
- Reproduced on:
- Android
- iOS
Description
We want to build a calling functionality and we were trying out this library.
For a POC, We made a fresh react-native app,
Installed the react-native-call-keep library as per the instructions given here.
Tried manual and auto-linking both.
The method displayIncomingCall() does not display anything.
We called the RNCallKeep.setup() function
And then called the RNCallKeep.displayIncomingCall() with proper parameters.
Expected Behaviour: Incoming Call to be shown
Actual Behaviour: Could not see anything.
We kept logs and debugged inside the node_modules as well to see what is going wrong.
Inside node_modules, In the file RNCallKeepModule.java
The method hasPhoneAccount() was returning false due to which the code is returning without doing anything.
We tried to debug further inside the method and make it return true somehow but It did not work out
The root cause code inside hasPhoneAccount() call that is returning false is telecomManager.getPhoneAccount(handle).isEnabled().
During the setup call, we've checked the registering Phone Account function as well but it runs well.
We've tried on emulators and real android devices as well.
Not sure what is the issue.
RNCallKeep.hasPhoneAccount() keeps returning false due to which no incoming call display is shown.
Steps to Reproduce
Here is the reproduction repository.
just clone, do npm install, npm run start & npm run android and you shall be good to go.
Versions
- Callkeep:4.2.0
- React Native:0.64.1
- iOS: Not tested yet on IOS
- Android: 9, 10
- Phone model: 9 - Redmi Note 7 Pro, 10 - Emulator
Thanks in advance :)
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
Reproduce with the linked rncallkeep-bug-repro repository using npm install, npm run start, and npm run android. Then inspect RNCallKeepModule.java, especially hasPhoneAccount() and the phone-account registration during setup. Done means displayIncomingCall shows the native incoming-call UI on the reported Android versions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java, react-native
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100