Skip to content

isCallActive returning undefined #332

Closed
@devWaleed

Description

@devWaleed

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+ 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions