我尝试在后台处理消息通知,并在后台收到通知时执行一些操作 我的安卓一切都很好 但在ios中 当通知收到应用程序时返回此错误
Error Domain=NSOSStatusErrorDomain Code=561015905 "Session activation failed" UserInfo={NSLocalizedDescription=Session activation failed}
flutter_callkit_incoming/SwiftFlutterCallkitIncomingPlugin.swift:215: Fatal error: Unexpectedly found nil while unwrapping an Optional value
flutter_callkit_incoming/SwiftFlutterCallkitIncomingPlugin.swift:215: Fatal error: Unexpectedly found nil while unwrapping an Optional value
* thread #1, queue = 'com.apple.main-thread', stop reason = Fatal error: Unexpectedly found nil while unwrapping an Optional value
frame #0: 0x00000001b68aca2c libswiftCore.dylib`_swift_runtime_on_report
libswiftCore.dylib`:
-> 0x1b68aca2c <+0>: ret
libswiftCore.dylib`:
0x1b68aca30 <+0>: b 0x1b68aca2c ; _swift_runtime_on_report
libswiftCore.dylib`:
0x1b68aca34 <+0>: adrp x8, 366469
0x1b68aca38 <+4>: ldrb w0, [x8, #0x994]
Target 0: (Runner) stopped.
然后app直接停止了
有什么问题吗?
注意:我添加了权限
<key>UIBackgroundModes</key>
<array>
<string>fetch</string>
<string>remote-notification</string>
<string>voip</string>
<string>processing</string>
</array>
但是同样的错误