Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android: Not getting incoming calls using 'deviceDidReceiveIncoming' event listener #188

Open
aishwarya-k11 opened this issue Jan 22, 2021 · 4 comments

Comments

@aishwarya-k11
Copy link

Please include the following information for better support

The more context you provide around this issue the faster the community can help you

Did you follow all the instructions as specified in the Twilio Quickstart repositories?- Yes
What version of React Native are you running? 0.63.2
What version of react-native-twilio-programmable-voice are you running? 4.3.0
What device are you using? (e.g iOS10 simulator, Android 7 device)? Android Simulator - Android 11
Is there any relevant message in the log? No
If using iOS, which pod version are you using? NA

Step to reproduce

Advanced:
Have you tried adding break point using AndroidStudio or XCode and analyse the logs?
can share a project with issue?
Did you try to reinstall the pods completely?

@salman-pixarsart
Copy link

@aishwarya-k11 event listener's name is "deviceDidReceiveIncoming" and furthermore, you are testing on an emulator you should be using a real device for testing.

TwilioVoice.addEventListener('deviceDidReceiveIncoming', function(data) {
    // {
    //     call_sid: string,  // Twilio call sid
    //     call_from: string, // "+441234567890"
    //     call_to: string,   // "client:bob"
    // }
})

@aishwarya-k11
Copy link
Author

aishwarya-k11 commented Jan 25, 2021

@salman-pixarsart Thank you for your response. I am doing the same thing in componentDidMount along with all the other event listeners, which are working perfectly fine. But this isn't working

@jdegger
Copy link
Collaborator

jdegger commented Feb 2, 2021

Hi @aishwarya-k11 are you getting the same results on a real device like @salman-pixarsart suggests?

@aishwarya-k11
Copy link
Author

@jdegger Yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants