flutter_callkit_incoming icon indicating copy to clipboard operation
flutter_callkit_incoming copied to clipboard

[iOS]: Call rings just for 2-3 seconds when app is terminated.

Open delwar36 opened this issue 2 years ago • 7 comments

I am using FCM to signal calls. As iOS doesn’t show silent Notification in terminated state, I am using 2 silent notification at a time. First one awakes the app 2nd one triggers executable code. (Though it could be uncertain). The problem is, the call rings only for 2-3 seconds and stops automatically. It actually returns "Call Failed"

delwar36 avatar Oct 06 '23 15:10 delwar36

up

mminhlequang avatar Oct 16 '23 09:10 mminhlequang

Any update on this? I have been facing the same issue?

jerrypaulsam avatar Oct 18 '23 04:10 jerrypaulsam

Same here as well, this has become serious issue for our application

icadholding avatar Dec 11 '23 12:12 icadholding

We have the same issue, it also only happens on production builds, in debug all is fine and the app works as expected.

Funnily enough, we only started having this issue "recently" and it was all fine before.

DooMMasteR avatar Apr 25 '24 08:04 DooMMasteR

I think, make sure call complete. https://github.com/hiennguyen92/flutter_callkit_incoming/blob/2c42076c7c873be7645399c0ac72d9e2b1b68fbf/example/ios/Runner/AppDelegate.swift#L87

hiennguyen92 avatar Apr 25 '24 08:04 hiennguyen92

We are receiving our notification via FCM, so we have only Flutter code at that point.
we then call await FlutterCallkitIncoming.showCallkitIncoming(callKitParams); from the notification handler, which then fails the first time, the notification shows up and disappears again. Doing it a second time right away, does the same, but the notification stays on screen.

Our AppDelegate.swift so far is bone stock flutter....

import UIKit
import Flutter

@UIApplicationMain
@objc class AppDelegate: FlutterAppDelegate {
  override func application(
    _ application: UIApplication,
    didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
  ) -> Bool {
    GeneratedPluginRegistrant.register(with: self)
    return super.application(application, didFinishLaunchingWithOptions: launchOptions)
  }
}

DooMMasteR avatar Apr 25 '24 11:04 DooMMasteR

@hiennguyen92 we are still a bit stuck on this issue. I tried to contact you via E-Mail and my boss via LinkedIn, we would like to get you involved into taking onto the issue directly (as a consultant). It would be great if you could reply to our inquiries.

DooMMasteR avatar May 21 '24 11:05 DooMMasteR