Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IOS Platform Error: flutter_callkeep/SwiftCallKeepPlugin.swift:152: Fatal error: Unexpectedly found nil while unwrapping an Optional value #52

Open
ldev1211 opened this issue Jun 26, 2023 · 0 comments

Comments

@ldev1211
Copy link

My code:
final callKeepBaseConfig = CallKeepBaseConfig(
appName: 'Done',
androidConfig: CallKeepAndroidConfig(
logo: 'ic_launcher',
notificationIcon: 'ic_launcher',
accentColor: '#34C7C2',
),
iosConfig: CallKeepIosConfig(
iconName: 'Icon',
maximumCallGroups: 1,
handleType: CallKitHandleType.generic
),
);
final config = CallKeepIncomingConfig.fromBaseConfig(
config: callKeepBaseConfig,
uuid: call.id!,
contentTitle: call.remote_display_name,
hasVideo: false,
handle: call.direction,
callerName: "HIHI",
extra: {"data1":"ddwwd","data2":'dwqddddd'},
);
await CallKeep.instance.displayIncomingCall(config);

When I run app in real device ios platform, i got a message:
flutter_callkeep/SwiftCallKeepPlugin.swift:152: Fatal error: Unexpectedly found nil while unwrapping an Optional value
flutter_callkeep/SwiftCallKeepPlugin.swift:152: Fatal error: Unexpectedly found nil while unwrapping an Optional value

  • thread How to use this plugin??? #1, queue = 'com.apple.main-thread', stop reason = Fatal error: Unexpectedly found nil while unwrapping an Optional value
    frame #0: 0x000000019fa7ca3c libswiftCore.dylib_swift_runtime_on_report libswiftCore.dylib:
    -> 0x19fa7ca3c <+0>: ret
    libswiftCore.dylib: 0x19fa7ca40 <+0>: b 0x19fa7ca3c ; _swift_runtime_on_report libswiftCore.dylib:
    0x19fa7ca44 <+0>: adrp x8, 366325
    0x19fa7ca48 <+4>: ldrb w0, [x8, #0x994]
    Target 0: (Runner) stopped.`

What should I do?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant