Android Question how to get incoming call state to my SIM when I am on the voip call

denis li

New Member
I have app which is supporting the voip call. when I am on the voip call, if I get SIM call and accept it, I am going to hold the voip call.
I am using TelephonyManager and PhoneStateListener to get the incoming call state. When there is no active voip call, I can get the incoming call state(RINGING, CONNECTED, ENDED)
But when I am on the voip call(to use the native ui, I am using react-native-callkeep), I can't get the incoming call state. after end the voip call, I can get the incoming call state.

I am new in Android. How can I fix this probloem.
 
Top