Bring app to front in React Native when there's an incoming call

Is there a way to bring the app to the foreground when a cometchat call comes in?

I found a way to display the call dialog using react-native-callkeep when the app is in the background, and I tried writing native (Java) code to bring the app to the foreground if the call is answered, but it doesn’t work. Connects the call, but the application does not come to the foreground.

@Aishwarya.CometChat

@mayur.bhandari any doc about this?

Hey @Laurence,
We have created a sample app that shows how to integrate connectionSetvice and call kit in react-native to handle calls in the background and killed state. Here are the links to documentation and our sample app.
Documentation- https://www.cometchat.com/docs/extensions/react-native-push-notifications#integrating-connectionservice-and-callkit-using-cometchat-push-notification
Sample App- https://github.com/cometchat-pro/react-native-chat-push-notification-app/tree/Callkit/ConectionService
Hope this is helpful.

Regards,
Tirath Bhuva

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.