masashi-sutou / flutter_ios_voip_kit

One-to-one video call using CallKit and PushKit with flutter iOS app.
MIT License
67 stars 45 forks source link

Unexpectedly found nil while unwrapping an Optional value #30

Closed ziasultan2 closed 3 years ago

ziasultan2 commented 3 years ago

I'm getting this error whn try Incomming call. testIncomingcall function

voIPKit.testIncomingCall(
                  uuid: '12345',
                  callerId: dummyCallId,
                  callerName: dummyCallerName,
                );

App getting terminate and producing this error

2021-03-02 01:58:29.498665+0600 Runner[873:430465] flutter: 🎈 testIncomingCall: 12345, 123456, Dummy Tester
Fatal error: Unexpectedly found nil while unwrapping an Optional value: file /Users/johnsmith/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_ios_voip_kit-0.0.5/ios/Classes/CallKitCenter.swift, line 80
2021-03-02 01:58:29.503963+0600 Runner[873:430368] Fatal error: Unexpectedly found nil while unwrapping an Optional value: file /Users/johnsmith/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_ios_voip_kit-0.0.5/ios/Classes/CallKitCenter.swift, line 80
(lldb) 

Please let me know the solution

ziasultan2 commented 3 years ago

Thanks fixed the issue it was occuring because of uuid.