ConnectyCube / connectycube-flutter-call-kit

A Flutter plugin for displaying call screen when the app in the background or terminated.
https://developers.connectycube.com/flutter
Apache License 2.0
57 stars 83 forks source link

ios real device show this error Fatal error: Unexpectedly found nil while unwrapping an Optional value #112

Closed kapilsharma-gts closed 9 months ago

kapilsharma-gts commented 1 year ago

flutter_incoming_call/SwiftFlutterIncomingCallPlugin.swift:117: Fatal error: Unexpectedly found nil while unwrapping an Optional value

thread https://github.com/Alezhka/flutter_incoming_call/issues/1, queue = 'com.apple.main-thread', stop reason = Fatal error: Unexpectedly found nil while unwrapping an Optional value frame #0: 0x000000018851532c libswiftCore.dylib`_swift_runtime_on_report

TatankaConCube commented 1 year ago

your question is very similar to this https://github.com/ConnectyCube/connectycube-flutter-call-kit/issues/109 please use the solution provided there

Mubashir-Saeed1 commented 1 year ago

use uuid().v4() for the sessionID uuid flutter package

AbdurrehmanSubhani commented 1 year ago

im also getting the same error: IOS Device: Iphone XR IOS Version: 17.0.3

Error: Thread 1: Swift runtime failure: Unexpectedly found nil while unwrapping an Optional value

Thread:

3 0x0000000101a7eb4c in @objc VoIPController.pushRegistry(_:didReceiveIncomingPushWith:for:completion:) at /..../ios/Pods/:52

[VoIPController][pushRegistry][didReceiveIncomingPushWith] payload: [AnyHashable("uuid"): f5229a44-6a4d-4a1f-9925-95a2180a7a40, AnyHashable("message"): Some message in push, AnyHashable("aps"): { alert = "{\"message\":\"Some message in push\",\"uuid\":\"f5229a44-6a4d-4a1f-9925-95a2180a7a40\",\"caller_id\":\"123456789\",\"caller_name\":\"Subhani\",\"caller_id_type\":\"number\",\"has_video\":false}"; }, AnyHashable("has_video"): 0, AnyHashable("caller_id_type"): number, AnyHashable("caller_name"): Subhani, AnyHashable("caller_id"): 123456789]

TatankaConCube commented 1 year ago

@AbdurrehmanSubhani your push notification doesn't contain all required fields, please read the README more carefully

AbdurrehmanSubhani commented 1 year ago

Got it working, thanks!