react-native-webrtc / react-native-callkeep

iOS CallKit framework and Android ConnectionService for React Native
ISC License
922 stars 445 forks source link

Android Outgoing call not working from call log #397

Open armanrma7 opened 3 years ago

armanrma7 commented 3 years ago

Bug report

Description

didReceiveStartCallAction is not working background state

Steps to Reproduce

Versions

- Callkeep:
- React Native:
- iOS:
- Android:
- Phone model: 

Logs

Paste here
ialirzgh commented 3 years ago

no solution yet ?

armanrma7 commented 3 years ago

@ialirzgh not yet(

josaric commented 3 years ago

I have tried on iOS

this is working:

import { NativeEventEmitter, NativeModules } from "react-native";
const RNCallKeepModule = NativeModules.RNCallKeep;
const eventEmitter = new NativeEventEmitter(RNCallKeepModule);
try {
    RNCallKeep.setup(callKeepOptions);
    RNCallKeep.setAvailable(true);
} catch (err) {console.log(err)}

eventEmitter.addListener("RNCallKeepDidReceiveStartCallAction", async (event) => {
    console.log(event)
});

If I use this it's not working:

RNCallKeep.addEventListener('didReceiveStartCallAction', ({ handle, callUUID, name }) => {
});

Also I have managed to get event with this, but its not working in production, only development:

RNCallKeep.addEventListener('didLoadWithEvents', async (events) => {
});
ghost commented 1 year ago

I can't get this working. Tried almost everything for iOS:

But nothing... I suppose it's also connected to this: https://github.com/react-native-webrtc/react-native-callkeep/issues/554

For Android, i managed to get it working with didLoadWithEvents, but only once and when app was killed. Couldn't simulate it again 🤷‍♂️

I'm using RN 0.71.4 with Callkeep 4.3.7.

Could someone please help? Thanks!