react-native-callkit icon indicating copy to clipboard operation
react-native-callkit copied to clipboard

Is it possible to call using other than phone number

Open saikiranoptisol opened this issue 6 years ago • 2 comments

Hi,

I'm doing chat application in which there is an option for video call. For this i have integrated react-native-video-webRTC.But instead of connecting directly i need acept reject and call getting notifications as well. So i'm looking for some call kit frameworks like this. but here is it possible to make call without any phone number. Because i must not use phone number. i need to do it based on roomId. Is there that kind of possiblity with this framework.

If yes, how?

saikiranoptisol avatar Feb 14 '19 14:02 saikiranoptisol

RNCallKit.displayIncomingCall( _uuid , "the string show on the call screen")

andrew781026 avatar Feb 22 '19 14:02 andrew781026

how i can make incoming and outgoing calls.

I'm using methods like onIncomingCall = () => { // Store the generated uuid somewhere // You will need this when calling RNCallKit.endCall() let _uuid = uuid.v4() console.log("Hello RNCallKit", RNCallKit); // log is here console.warn('onIncomingCall,_uuid=', _uuid);

    RNCallKit.displayIncomingCall(_uuid, "886900000000");
    this.setState({_uuid});
};

// This is a fake function where you make outgoing calls
onOutgoingCall = () => {
    // Store the generated uuid somewhere
    // You will need this when calling RNCallKit.endCall()
    let _uuid = uuid.v4()

    console.warn('onOutgoingCall'+_uuid);
    RNCallKit.startCall(_uuid, "9177349752");
    this.setState({_uuid});
};

if i use this. I'm not sure how exactly i need to do for incoming and outgoing call

saikiranoptisol avatar Feb 22 '19 15:02 saikiranoptisol