EventListeners not registered if call received from voip push
Bug report
-
[x] I've checked the example to reproduce the issue.
-
Reproduced on:
-
[x] iOS
Description
I am sending a voip push from my server to the app and when received, i am handling it from native side using
[RNCallKeep reportNewIncomingCall: ... ]
It shows the native UI for incoming call so I don't need to call RnCallKepp.displayIncomingCall(), but listeners are not working.
answerCall is never registered, i checked my logs endCall and didDisplayIncomingCall is working fine.
So my question is, it is necessary to trigger the native UI using RNCallkeep.displayIncomingCall() only to register the event listeners or is there any alternate way to register them even when the UI is shown from native side.
I am using react-native-voip-push-notifications to handle voip push.
Steps to Reproduce
Checkout this part https://github.com/react-native-webrtc/react-native-callkeep?tab=readme-ov-file#PushKit
Versions
- Callkeep: "^4.3.13",
- React Native: "0.74.2",
I too noticed this issue
It's related to the metro bundles starting late, run the app in production mode and you will receive the even just fine