voximplant / flutter_callkit

Flutter SDK for CallKit integration to Flutter applications on iOS
MIT License
53 stars 18 forks source link

didDisplayIncomingCall won't get called if app waken up from terminated state. #14

Closed kevinarch closed 2 years ago

kevinarch commented 3 years ago

Hi, I'm using PushKit with VoIP push as your example:

# AppDelegate.swift
FlutterCallkitPlugin.sharedInstance.reportNewIncomingCall(
            with: uuid,
            callUpdate: callUpdate,
            providerConfiguration: configuration,
            pushProcessingCompletion: completion
        )

Everything works fine (didDisplayIncomingCall -> provider.performAnswerCallAction) . but when my app is closed and receive voip push, CallKit UI still showing but didDisplayIncomingCall callback didn't get call so i don't have enough information in onAnswerCallback.

Am I missing something ?

kfelix18 commented 3 years ago

Hi @k3vinb0ss

Did you find a solution to this issue already? Did you get it to work? Thanks

YuliaGrigorieva commented 3 years ago

Hello @k3vinb0ss , @kfelix18 ,

I suppose the issue might be caused by late setup of the callback. Please ensure that you set the didDisplayIncomingCall callback on the app start.

example: https://github.com/voximplant/flutter_demos/blob/c458668c2058e615e83461927fb543d4177ff98c/audio_call/lib/main.dart#L52

Best regards, Yulia Grigorieva