Open armanrma7 opened 3 years ago
no solution yet ?
@ialirzgh not yet(
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) => {
});
I can't get this working. Tried almost everything for iOS:
RNCallKeep.getInitialEvents()
didReceiveStartCallAction
and didLoadWithEvents
, also tried moving it to different locations, even moving to index.js
did not helpBut 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!
Bug report
[x] I've checked the example to reproduce the issue.
Reproduced on:
Description
didReceiveStartCallAction is not working background state
Steps to Reproduce
Versions
Logs