restart_app 1.8.2
restart_app: ^1.8.2 copied to clipboard
A Flutter plugin to restart or relaunch Flutter apps with platform-specific behavior, including opt-in iOS Flutter engine restart.
1.8.2 #
- Made iOS
restartApp()fail cleanly when Flutter engine restart is not configured instead of implicitly using the legacy notification fallback - Kept the iOS notification fallback available only through explicit
RestartMode.notificationFallback - Removed the internal implicit-fallback argument from the Dart API and iOS plugin channel handling
- Expanded the example app with restart checks for common Flutter packages
- Updated README wording to make the no-implicit-workaround iOS behavior clear
1.8.1 #
- Fixed restart mode handling so unsupported modes fail instead of silently using a platform default
- Returned resolved structured restart modes from Android, web, Linux, macOS, and Windows
- Made Android
RestartMode.processuse the fullforceKillrestart path automatically - Updated the example Android Gradle project so the bundled example builds with current Java/Flutter toolchains
- Ran the iOS
beforeRestarthook before creating the replacementFlutterEngineso apps can clean up native resources first
1.8.0 #
- Added structured restart API with
Restart.restart(),RestartResult,RestartMode, andRestart.restartCapability() - Added opt-in iOS Flutter engine restart that creates a fresh
FlutterEngine, re-runs Dart, re-registers plugins through the host app, and replaces the rootFlutterViewController - Kept the existing iOS notification +
exit(0)behavior as an explicit legacy fallback - Updated iOS documentation to distinguish Flutter engine restart from unsupported full process restart
1.7.3 #
- Fixed Xcode build failure caused by SPM target path resolving outside the package root (#52)
1.7.2 #
- Fixed Swift Package Manager file locations for iOS and macOS
1.7.1 #
- Added Swift Package Manager support for iOS and macOS
1.7.0 #
- Added native Linux support. Restarts via
execv, replacing the current process in-place - Added native Windows support. Launches a new instance via
CreateProcessand exits - Added Android TV and Fire TV support via leanback launcher fallback
restartApp()now returnsfalseon native errors instead of throwingPlatformException- Added CI with code quality checks, formatting, and native linting (Kotlin, Swift, C++)
- Added unit tests
1.6.0 #
- Added native macOS support via a Swift plugin. Restarts the app by launching a new instance using
NSWorkspaceand terminating the current process
1.5.2 #
- Fixed Android FlutterJNI detached error: all destructive restart operations are now deferred via a short delay so the platform channel result can be delivered to the Dart side before the Flutter engine is torn down
- Lowered minimum Dart SDK requirement from 3.5.1 to 3.4.0 (Flutter 3.22+)
- Improved README: corrected iOS provisioning profile guidance, removed inaccurate CFBundleURLTypes instructions, and added documentation for calling from background isolates
1.5.1 #
- Added
forceKilloption for Android. Fully terminates the process after restart for a clean cold start - Fixed iOS restart not working due to incorrect AppDelegate cast
- Implemented proper iOS restart using local notifications with permission handling
- Breaking (iOS): Returns a
PlatformExceptionwith codeNOTIFICATION_DENIEDif notification permission is denied. Handle this in your code - Removed unused
plugin_platform_interfacedependency - Fixed iOS podspec placeholder metadata
- Fixed nested MaterialApp in example app
- Improved web error handling for unrecognized method calls
- Cleaned up unused imports
1.3.3 #
1.3.2 #
- Updated web package to the stable version
1.3.1 #
- Updated JVM and Kotlin versions
- Upgraded Flutter web dependency to more compatible version
- Resolved dependency conflicts with firebase packages and restart_app
1.3.0 #
- Custom notification support added for iOS:
notificationTitleandnotificationBodycan now be customized
- Android improvements:
- Added namespace configuration
- Replaced
.exitmethod with new, safeActivityAwaremethod - Updated Kotlin version
- Web support enhanced:
- Added Wasm support
- General updates:
- Updated dependencies
1.2.1 #
- In-code documentation added to the source
1.2.0 #
- iOS support added
1.1.3 #
- Updated to Flutter 3.10
- Example files updated
1.1.2 #
- Updated to Flutter 3.7.0
1.1.1+1 #
- iOS support description added to README
1.1.1 #
- Gradle version updated
1.1.0+1 #
- Updated to Flutter 3.0.0
1.1.0 #
- Web support added
1.0.3 #
- Plugin version updated in README
1.0.2 #
- Package name updated in example files
1.0.1 #
- Package name updated
1.0.0 #
- Null-Safety support added