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

Calling configure() method crashes the app on iOS device #10

Open
DDavidPrime opened this issue Dec 10, 2020 · 3 comments
Open

Calling configure() method crashes the app on iOS device #10

DDavidPrime opened this issue Dec 10, 2020 · 3 comments

Comments

@DDavidPrime
Copy link

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.

@afl-dev
Copy link

afl-dev commented Dec 21, 2020

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

@DDavidPrime
Copy link
Author

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

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

@VictorUvarov
Copy link

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?

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

3 participants