gabrimatic / restart_app

A Flutter plugin that helps you to restart the whole Flutter app with a single function call by using native APIs.
https://pub.dev/packages/restart_app
MIT License
72 stars 63 forks source link

App crash when call restart app #15

Closed minhnguyenandpad closed 1 month ago

minhnguyenandpad commented 1 year ago

This no longer work on Android and iOS anymore. When we call restartApp. It crashed both on Android and iOS.

blk-raffy commented 1 year ago

Just tested and it works on both

hussien8811 commented 1 year ago

same with me. Did you solve it for iOS? flutter 3.10.0 restart_app 1.2.1

juliavi commented 1 year ago

It only crashes while in debug mode or running with the IDE. When running separately on a device, it doesn't crash.

PhaniUmmedisetti commented 1 year ago

same with me. Did you solve it for iOS? flutter 3.10.0 restart_app 1.2.1

The crashing issue is basically in debug mode only irrespective of the device. Raun it in release mode and it works just fine. In IOS it will close the app but you'll get a notification because there's issue with IOS's permission handler

mohsinnaqvi0606 commented 1 year ago

Tested on IOS, it's still crashing in both mode release and debug.

Flutter: 3.13.0 restart_app: 1.2.1

dnfield commented 8 months ago

This is almost certainly due to https://github.com/gabrimatic/restart_app/issues/23

gabrimatic commented 1 month ago

Please check this comment: https://github.com/gabrimatic/restart_app/issues/23#issuecomment-2331931090