Skip to content
This repository was archived by the owner on May 26, 2019. It is now read-only.
This repository was archived by the owner on May 26, 2019. It is now read-only.

help setting up event listener? #44

Open
@ghost

Description

I think I have react-native-callkit set up correctly, because I can get checkIfBusy to report true if I am in a call, and false otherwise. I am somewhat new to react-native so please forgive me if this is something basic!

However, I'm having trouble getting the event listeners to work.

My current setup is this:

in the component constructor:
RNCallKit.addEventListener('didReceiveStartCallAction', this.onRNCallKitDidReceiveStartCallAction);

as the first component method after the constructor and the state declaration:

onRNCallKitDidReceiveStartCallAction(data) {
   
 console.log('--Start call action--');
    console.log(data);
    console.log(uuid);
    const myUuid = uuid.v4();
    RNCallKit.startCall(myUuid, data.handle);
  }

I open the app on my Iphone (5s with iOS 11.4), with XCode and the debugger running, and make a call from my Recents, but the console doesn't display '--Start call action--', which I interpret to mean that this event is not being processed.

I'm not seeing any error messages or anything. Thank you for any help!

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