flutter-webrtc / callkeep

iOS CallKit and Android ConnectionService for Flutter
MIT License
131 stars 142 forks source link

IOS How to show incoming call only app is in background? #54

Closed xyzbilal closed 2 years ago

xyzbilal commented 3 years ago

Hi, I m trying to implement an softphone app works with janus gateway an webrtc. everything works fine. to keep app receive calls from janus I have to leave session alive all the time and when a call received my backend will send voip notification.

the problem is backend cant know the app is alive or not and it should send notification everytime call received. my concern is when my app is running I only show incoming call screen and if app is background I want to show callkit screen. I tried to add lifecycle of flutter WidgetsBindingObserver to control events but it didnt work properly. I use example app of this package for testing. any idea will be appriciated.

thanks.

rekonvald commented 3 years ago

Hi there! Should there be additional settings for IOS? I can't make it run there, app crashes on display incoming call

ahmedJD commented 3 years ago

@rekonvald the app crash when it's killed after display incomming call is there any solution?

rekonvald commented 3 years ago

I don't use this plugin any more

ejimenez93 commented 3 years ago

@rekonvald -- what plugin are you using instead? We're having similar issues with this library when our app is terminated or in the background

subhangiP commented 2 years ago

@rekonvald

-- what plugin are you using instead? We're having similar issues with this library when our app is terminated or in the background

Have you found any solutions for both iOS and android?

xyzbilal commented 2 years ago

I finally recreated apps with native android java and ios swift with native api's provided. I learnt so much from this package. thanks.