flutter-webrtc / callkeep

iOS CallKit and Android ConnectionService for Flutter
MIT License
133 stars 147 forks source link

IOS - unable to recieve incoming call notification when the app is in background. #153

Open fasikawsow opened 2 years ago

fasikawsow commented 2 years ago

I used callkeep to show incoming call notification for my video call app.

for the android part, it is working fine. I am receiving incoming call in foreground and background.

but for ios, The app shows incoming call screen when it is opened. if I touched the home button and the app is minimized. I am not receiving call notifications, the incoming call screen will displayed as soon as I click the app icon.

I am using callkeep: ^0.3.2.

How to resolve this issue?.

fasikawsow commented 2 years ago

@cloudwebrtc This is an urgent situation. I am asking you maybe you can look at my Issue and help fix the problem. I have been struggling with this problem for a long time.

alexzh16 commented 2 years ago

@cloudwebrtc This is an urgent situation. I am asking you maybe you can look at my Issue and help fix the problem. I have been struggling with this problem for a long time. first of all please configure Voip Push server, without Voip push server on ios is not working (or use commercial voip push servers). Or you can send push as message to your App and then call CallKeepDidDisplayIncomingCall for the show CallKit screen.

AbdurrehmanSubhani commented 1 year ago

Hey, did you find any solution or fix for this issue?

fasikawsow commented 1 year ago

Hey, did you find any solution or fix for this issue?

I didn't find a solution this functionality is pending

AbdurrehmanSubhani commented 1 year ago

Hey, did you find any solution or fix for this issue?

I didn't find a solution this functionality is pending

Hey, i solved this background/terminated calling issue. You can use this if your still looking for a solution for this issue:

  1. Currently Callkeep package does not support showing callkit call in background/terminated state after receiving a Voip push, maybe they are working on a solution for this and patch this in the near future
  2. Use flutter_callkit_incoming package to handle incoming voip push notifications, make sure to copy and add the appdelegate.swift file into your projects appdelegate file, doing so you will be able to handle the voip pushes
  3. I have tested this approach and can verify that the solution is working when the app is in background and terminated mode