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?