flutter_callkit_incoming
flutter_callkit_incoming copied to clipboard
[iOS]: Call rings just for 2-3 seconds when app is terminated.
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"
up
Any update on this? I have been facing the same issue?
Same here as well, this has become serious issue for our application
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.
I think, make sure call complete. https://github.com/hiennguyen92/flutter_callkit_incoming/blob/2c42076c7c873be7645399c0ac72d9e2b1b68fbf/example/ios/Runner/AppDelegate.swift#L87
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)
}
}
@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.