react-native-twilio-programmable-voice icon indicating copy to clipboard operation
react-native-twilio-programmable-voice copied to clipboard

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

Open aishwarya-k11 opened this issue 4 years ago • 4 comments

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?

aishwarya-k11 avatar Jan 22 '21 11:01 aishwarya-k11

@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"
    // }
})

salman-pixarsart avatar Jan 23 '21 13:01 salman-pixarsart

@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

aishwarya-k11 avatar Jan 25 '21 05:01 aishwarya-k11

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

jdegger avatar Feb 02 '21 07:02 jdegger

@jdegger Yes

aishwarya-k11 avatar Mar 10 '21 10:03 aishwarya-k11