infobip / mobile-messaging-flutter-plugin

Mobile Messaging SDK plugin for Flutter projects
Other
9 stars 5 forks source link

App crashes after a hot restart #13

Closed ViacheslavBER closed 1 year ago

ViacheslavBER commented 1 year ago

Flutter app crashes with this logs

MobileMessaging/MobileMessaging.swift:750: Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value Lost connection to device. Exception: Unable to terminate org.infobip.plugins.mobilemessaging.flutter on 8BFB3396-CF74-4A23-B39E-5CF4256595BC: ProcessException: Process exited abnormally: An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=3): The operation couldn’t be completed. found nothing to terminate found nothing to terminate Command: /usr/bin/arch -arm64e xcrun simctl terminate 8BFB3396-CF74-4A23-B39E-5CF4256595BC org.infobip.plugins.mobilemessaging.flutter

riskpp commented 1 year ago

Hello @ViacheslavBER, could you please provide more information, version of the Mobile Messaging plugin used, what are the steps to reproduce this issue? Are you able to reproduce it using example application?

Thank you!

ViacheslavBER commented 1 year ago

Hello @riskpp, thanks for your response, our app use 0.9.3 version of Infobip, it works, so i think set up is correct.

for reproduce there are the steps:

  1. run the app
  2. wait a second or more
  3. click Flutter Hot Restart (not Hot Reload)

We saw that this problem appeared after adding Infobip, so I also tested it on your example app (with our credentials) and it also had the same problem,

PS we use 3 method of setup https://github.com/infobip/mobile-messaging-flutter-plugin/wiki/Applying-Firebase-configuration-in-MobileMessaging-Flutter-plugin#option3

alboldy-ib commented 1 year ago

Hello @ViacheslavBER ,

A fix version had been released - 1.1.2 - feel free to check it.

ViacheslavBER commented 1 year ago

thank !

riskpp commented 1 year ago

closing, issue is fixed