react-native-webrtc / react-native-callkit

#deprecated iOS 10 new CallKit framework for React Native
ISC License
122 stars 67 forks source link

Is it possible to call using other than phone number #75

Open saikiranoptisol opened 5 years ago

saikiranoptisol commented 5 years ago

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?

andrew781026 commented 5 years ago

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

saikiranoptisol commented 5 years ago

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