Skip to content

isCallActive returning undefined #332

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

Closed
2 tasks done
devWaleed opened this issue Dec 1, 2020 · 4 comments · Fixed by #364
Closed
2 tasks done

isCallActive returning undefined #332

devWaleed opened this issue Dec 1, 2020 · 4 comments · Fixed by #364

Comments

@devWaleed
Copy link

devWaleed commented Dec 1, 2020

Bug report

  • I've checked the example to reproduce the issue.

  • Reproduced on:

  • iOS

Description

I have the following code to check if answercall was pressed early before JS context is loaded.

But in this scenario isCallActive is returning me undefined all the time. First console log is printed so i know that my method is executed but isCallActive doesnt work properly so the whole 1 second timer loop doesnt work.

Steps to Reproduce

this.callAcceptanceTimer = setInterval(async () => {
        console.log('Is Call Accepted for UUID: ', uuid);

        if (await RNCallKeep.isCallActive(uuid)) {
          this._onCallAccept(uuid);
          console.log('awesome');
        }
      }, 1000);

Versions

- Callkeep: 4.0
- React Native:  0.63.3
- iOS: 14+ 
@devWaleed
Copy link
Author

devWaleed commented Dec 3, 2020

Is anyone going to support here? or is this package lost? I have cleaned my node modules and pods multiple times. Sometimes it works, sometimes it doesn't.

This is quite unstable to be honest. I am not getting anything on didLoadWithEvents either. I don't have any way to determine if a call was accepted early.

@manuquentin can you please revert sir?

@sboily
Copy link
Member

sboily commented Dec 3, 2020

Have you tried with 4.0.0 or 4.0.1?

@devWaleed
Copy link
Author

@sboily currently i am on 4.0.1 and it doesn't work

@weijihuang
Copy link

Yes, I am having the same issue!

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

Successfully merging a pull request may close this issue.

3 participants