connectycube-flutter-call-kit
connectycube-flutter-call-kit copied to clipboard
Has error not show imcomming call when voip comming in ios lockscreen
When ios on lockscreen after receiving an viop incoming call, ios has error log and not show the incoming call screen [ERROR:flutter/shell/platform/darwin/graphics/FlutterDarwinContextMetalImpeller.mm(42)] Using the Impeller rendering backend.
could you please provide the output of the command flutter doctor -v
?
[!] Flutter (Channel stable, 3.19.0, on macOS 14.3 23D56 darwin-arm64, locale en-VN)
• Flutter version 3.19.0 on channel stable at /Users/baonn/fvm/versions/3.19.0
! Warning: dart
on your path resolves to /opt/homebrew/Cellar/dart/2.19.3/libexec/bin/dart, which is not inside your current Flutter SDK checkout at /Users/baonn/fvm/versions/3.19.0. Consider adding /Users/baonn/fvm/versions/3.19.0/bin to the front of your path.
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision bae5e49bc2 (8 days ago), 2024-02-13 17:46:18 -0800
• Engine revision 04817c99c9
• Dart version 3.3.0
• DevTools version 2.31.1
• If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.
[!] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
• Android SDK at /Users/baonn/Library/Android/sdk
✗ cmdline-tools component is missing
Run path/to/sdkmanager --install "cmdline-tools;latest"
See https://developer.android.com/studio/command-line for more details.
✗ Android license status unknown.
Run flutter doctor --android-licenses
to accept the SDK licenses.
See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.
[✓] Xcode - develop for iOS and macOS (Xcode 15.2) • Xcode at /Applications/Xcode.app/Contents/Developer • Build 15C500b • CocoaPods version 1.14.2
[✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
im running release in sdk 3.16.8 i have this error after updating to 3.19.0 this error is not fixed. When app opened, everything worked well
have you tried to build iOS without impeller enabling? does this issue present here too?
could you please provide the full log not only the error string?
fvm flutter run --release -d 00089630-001914A61A044533 --no-enable-impeller This is a command I have run. After i close app and lock my phone This is logs flutter: [initEventsHandler] rawData: {event: voipToken, args: {voipToken: XXXXXXX}} [ERROR:flutter/shell/platform/darwin/graphics/FlutterDarwinContextMetalImpeller.mm(42)] Using the Impeller rendering backend. flutter: [initEventsHandler] rawData: {args: {voipToken: XXXXXX}, event: voipToken}
is this full log?
yes, this is full logs in my console/
Update: after adding
please provide the full payload what do you put in the VoIP push notification
flutter: [initEventsHandler] rawData:
it is the part of starting the app, but before in log you should to see the info about incoming voip
if your system ignores the voip, try to remove the app and install it again
"session_id" => "{$call->id}",
"call_type" => $forIos ? ($call->is_video ? 1 : 0) : ($call->is_video ? '1' : '0'),
"caller_id" => $forIos ? $user->id : "{$user->id}",
"caller_name" => "{$user->fullname}",
"call_opponents" => $receiverIds,
"photo_url" => "{$user->avatar_path}",
"message" => $body,
"signal_type" => "startCall",
"ios_voip" => "1",
"notification_type" => "PUSH"
Just reinstall the app incoming call showed on lockscreen
what platform do you use for sending the push notification? looks like it is not the flutter. also please check if you send the correct types of data, here is the types which plugin expects https://github.com/ConnectyCube/connectycube-flutter-call-kit/blob/master/ios/Classes/VoIPController.swift#L66-L72
Just reinstall the app incoming call showed on lockscreen
is your app work with enabled impeller?
And i found a new issue when accepting voice calls on lockscreen. When incoming calls show on lockscreen, I accept call after i click button leave call, native call is closed, but action in callback onCallRejectedWhenTerminated not triggered
but action in callback onCallRejectedWhenTerminated not triggered
it works for Android only, please see README more carefuly, for iOS use the common onCallRejected
because the iOS app starts in background immediately after receiving the VoIP push notification
When incoming calls show on lockscreen, I accept call after i click button leave call, native call is closed, If I answer a call while it is on lockscreen, it will not show up again. Logs: GrMtlCommandBuffer: WARNING: Creating MTLCommandBuffer while in background.
I need a full log not only the warning or errors
When i run the release on iOS, I only see these logs. So sorry, Do you know how to see more logs on iOS run release?
yes, you can do it via the Console app. To start it go to Xcode -> Window -> Devices and Simulators, then select your device and press the 'Open console' button, then in the opened window click the 'Start streaming' button. after that, you should to see all logs from your device and can filter them by your app
When i run the release on iOS
can you reproduce the same issue in the debug build?
I do not think I can replicate this problem in debug mode because, in this instance, I have to lock my iPhone and close the app.
I have to lock my iPhone and close the app.
and why can't do it in debug mode when the device is connected to the Xcode?
After I close the app, it cannot start. How can you run debug?
then you need the Console app for reading and collecting logs
can you reproduce the same issue in the debug build?
here I meant the build installed via Xcode, not other release-delivering systems