react-native-incall-manager
react-native-incall-manager copied to clipboard
events are not firing on Android
I have tried below both methods. but none of them are firing the event
Method 1: import { DeviceEventEmitter } from 'react-native';
DeviceEventEmitter.addListener('WiredHeadset', function (data) {
// --- do something with events
});
Method 2:
const nativeBridge = NativeModules.InCallManager;
const NativeModule = new NativeEventEmitter(nativeBridge);
this.wiredHeadsetListener = NativeModule.addListener('WiredHeadset', (data) => {
// do something
});
Any help would be appreciated
Same here. I'm testing iOS
I am also facing same issue. Anyone find any clue/solution?