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

Broken #4

Closed 127 closed 3 years ago

127 commented 3 years ago

[VERBOSE-2:ui_dart_state.cc(209)] Unhandled Exception: MissingPluginException(No implementation found for method restartApp on channel restart)

0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:154:7)

#1 Restart.restartApp (package:restart_app/restart_app.dart:9:8)
gabrimatic commented 3 years ago

You have to stop your running app, run flutter pub get, and then rerun the app again.

Edit: It needs to recompile your app to apply the restart_app package because the package uses the native APIs and it doesn't apply until you recompile the app.

kaning commented 2 years ago

I still get this exception even after killing the app, uninstalling it, run flutter clean, run flutter pub get, the run the app again from cold. This is on the iOS simulator

gabrimatic commented 2 years ago

I still get this exception even after killing the app, uninstalling it, run flutter clean, run flutter pub get, the run the app again from cold. This is on the iOS simulator

This package doesn't support iOS for now.