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

Incoming call not displaying it's a video call

Open ThomasLarge opened this issue 7 years ago • 13 comments

I have a function that is being called when I get a notification but I can't get it to say Video and not audio. Bellow is the function

onIncomingCall(callUuid) {
   RNCallKeep.displayIncomingCall(callUuid, "Thomas Large", null, true);
}

True is the way the docs tells you how to set it

Can anyone help?

ThomasLarge avatar May 31 '19 10:05 ThomasLarge

hi @ThomasLarge have you found a solution for videocall, please support me.

tienviip avatar Jun 12 '19 12:06 tienviip

@tienviip do you mean how to get it working? or the issue I have above?

ThomasLarge avatar Jun 12 '19 13:06 ThomasLarge

@ThomasLarge yep, I also encountered your problem above, Can you help me, please.

tienviip avatar Jun 13 '19 10:06 tienviip

@tienviip I'm waiting on someone to help me too 😆 I'm going to try and dig into it later but haven't got the time at the moment that's why I have opened the issue

ThomasLarge avatar Jun 13 '19 13:06 ThomasLarge

The problem is probably that hasVideo is hard-coded to NO here:

https://github.com/react-native-webrtc/react-native-callkeep/blob/7d7306027834da68f488b4d88bb1ad9910e9348b/ios/RNCallKeep/RNCallKeep.m#L135

LinusU avatar Jun 26 '19 11:06 LinusU

@LinusU Looks like it's here too

https://github.com/react-native-webrtc/react-native-callkeep/blob/7d7306027834da68f488b4d88bb1ad9910e9348b/ios/RNCallKeep/RNCallKeep.m#L254

Do you think it's best to change the file locally or is it best to wait until the repo has been updated?

ThomasLarge avatar Jun 26 '19 12:06 ThomasLarge

Update it locally, see if it fixes your issue and then submit a PR with it configurable :) in all likelihood it won't get fixed unless you fix it!

On Wed, 26 Jun 2019, 13:12 Thomas Large, [email protected] wrote:

@LinusU https://github.com/LinusU Looks like it's here too

https://github.com/react-native-webrtc/react-native-callkeep/blob/7d7306027834da68f488b4d88bb1ad9910e9348b/ios/RNCallKeep/RNCallKeep.m#L254

Do you think it's best to change the file locally or is it best to wait until the repo has been updated?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/react-native-webrtc/react-native-callkeep/issues/54?email_source=notifications&email_token=AAB3LLJSYIJU4YKKPAONIY3P4NMKDA5CNFSM4HRYEMK2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYTKC6Y#issuecomment-505848187, or mute the thread https://github.com/notifications/unsubscribe-auth/AAB3LLOKBIEFQNETMYIKQK3P4NMKDANCNFSM4HRYEMKQ .

danjenkins avatar Jun 27 '19 06:06 danjenkins

@danjenkins & @LinusU I have changed that file and it doesn't seem to work still I think there's more places it's hardcoded or it's something that isn't working in the package. I haven't got the time over the next couple of days to look into it more but I will over the weekend. There's also these two lines

https://github.com/react-native-webrtc/react-native-callkeep/blob/5cae45787f46fb772a31369c8bc89fd5167c2033/index.js#L48

https://github.com/react-native-webrtc/react-native-callkeep/blob/5cae45787f46fb772a31369c8bc89fd5167c2033/index.js#L57

ThomasLarge avatar Jun 27 '19 07:06 ThomasLarge

HI anyone found a solution for showing incoming call ui, please help me, I am using react-native-WebRTC plugin , react-native-callkeep and want to show incoming call ui but nothing showing even I called the function RNCallKeep.displayIncomingCall("978697869", "TESting");

But no luck, please help me if anyone got solution.

jaswantjatav avatar Jun 27 '19 12:06 jaswantjatav

@jaswantjatav if you need help then please make a new issue

danjenkins avatar Jun 27 '19 13:06 danjenkins

@ThomasLarge @LinusU

So you need to change https://github.com/react-native-webrtc/react-native-callkeep/blob/7d7306027834da68f488b4d88bb1ad9910e9348b/ios/RNCallKeep/RNCallKeep.m#L135 's NO to hasVideo

I'd just comment out the line https://github.com/react-native-webrtc/react-native-callkeep/blob/7d7306027834da68f488b4d88bb1ad9910e9348b/ios/RNCallKeep/RNCallKeep.m#L254

@ThomasLarge those 2 links to the index.js are just setting a default of false. If you pass in true it'll be true :)

Make sure you close down your metro packager etc etc and build from scratch with the change done locally in your node_modules directory if you want to test it out :)

danjenkins avatar Jun 27 '19 13:06 danjenkins

Cheers @danjenkins I will look at this tomorrow or the weekend

ThomasLarge avatar Jun 27 '19 14:06 ThomasLarge

I can confirm this is all fixed 👍

ThomasLarge avatar Jul 09 '19 07:07 ThomasLarge