flutter_voip_push_notification icon indicating copy to clipboard operation
flutter_voip_push_notification copied to clipboard

Calling configure() method crashes the app on iOS device

Open DDavidPrime opened this issue 4 years ago • 3 comments

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.

DDavidPrime avatar Dec 10 '20 15:12 DDavidPrime

аналогичная проблема, вы нашли решение?

afl-dev avatar Dec 21 '20 08:12 afl-dev

аналогичная проблема, вы нашли решение?

Unfortunately, not yet. Still waiting for response from @peerwaya or someone who can help.

DDavidPrime avatar Dec 22 '20 12:12 DDavidPrime

Screen Shot 2021-01-16 at 12 53 32 PM

or

<key>UIBackgroundModes</key>
<array>
  <string>voip</string>
</array>

Have you enabled voip background modes in your ios/Runner/info.plist file?

VictorUvarov avatar Jan 16 '21 20:01 VictorUvarov