flutter_voip_push_notification
flutter_voip_push_notification copied to clipboard
Calling configure() method crashes the app on iOS device
While testing on iOS on simulator, everything was working fine until I tried running my app on a real device. I noticed that it was crashing and while debugging I discovered that it was crashing on this line:
flutterVoipPushNotification.configure( onMessage: onMessage, onResume: onResume);
I checked and I was calling the requestNotificationPermissions()
method successfully. After some additional debugging (stepping inside the configure()
method), the app was breaking at _channel.invokeMethod<void>('configure');
which is a call to the native code (which would make sense since it is not crashing on the simulator).
Any idea why it would be crashing or any help ?
Additional info: Device: iPhone 7 Simulator: iPhone 12 Pro Max Simulator and device version: iOS 14.2.
аналогичная проблема, вы нашли решение?
аналогичная проблема, вы нашли решение?
Unfortunately, not yet. Still waiting for response from @peerwaya or someone who can help.

or
<key>UIBackgroundModes</key>
<array>
<string>voip</string>
</array>
Have you enabled voip background modes in your ios/Runner/info.plist
file?