I have web rtc implemented in a webview. Everything working fine as long as app in foreground.
Now if the app is in background/dose mode. I want to show a ringing screen like what's app. I am having a push notification when some one calls.
I know I can show notification alnog with calling sound and onClick of the notification . I can show my app Activity.
Is there any call urls exist like this
and can it be handled without notification
Or can I register my app as calling app. So that whenever call happens I register ConnectionService
and recieve onCreateIncomingConnection
Yes you can. I use janus gateway and my code parts is accordingly,
receive firebase message.
SipPluginHanler is where my app connects websocket then initilizes webrtc and send receive jsep operations performed.
public void claimSuccess() {
in on event there is switch case that checks events comes from janus gateway.
finally onIncoming function I check if handler class fromConnection is true then I call ConnectionService.
for connection service classes I just modified android part of a flutter plugin below. https://github.com/BradenBagby/flutter_voip_kit/tree/master/android/src/main/kotlin/com/example/flutter_voip_kit