Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incoming call not displaying it's a video call #54

Closed
ThomasLarge opened this issue May 31, 2019 · 13 comments
Closed

Incoming call not displaying it's a video call #54

ThomasLarge opened this issue May 31, 2019 · 13 comments

Comments

@ThomasLarge
Copy link
Contributor

ThomasLarge commented May 31, 2019

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?

@tienviip
Copy link

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

@ThomasLarge
Copy link
Contributor Author

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

@tienviip
Copy link

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

@ThomasLarge
Copy link
Contributor Author

@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

@LinusU
Copy link
Contributor

LinusU commented Jun 26, 2019

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

callUpdate.hasVideo = NO;

@ThomasLarge
Copy link
Contributor Author

@LinusU Looks like it's here too

callUpdate.hasVideo = NO;

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

@danjenkins
Copy link
Collaborator

danjenkins commented Jun 27, 2019 via email

@ThomasLarge
Copy link
Contributor Author

@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

displayIncomingCall = (uuid, handle, localizedCallerName, handleType = 'number', hasVideo = false) => {

startCall = (uuid, handle, handleType = 'number', hasVideo = false, contactIdentifier) => {

@jaswantjatav

This comment has been minimized.

@danjenkins

This comment has been minimized.

@danjenkins
Copy link
Collaborator

danjenkins commented Jun 27, 2019

@ThomasLarge @LinusU

So you need to change

callUpdate.hasVideo = NO;
's NO to hasVideo

I'd just comment out the line

callUpdate.hasVideo = NO;

@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 :)

@ThomasLarge
Copy link
Contributor Author

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

@ThomasLarge
Copy link
Contributor Author

I can confirm this is all fixed 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants