self_launcher 1.0.1
self_launcher: ^1.0.1 copied to clipboard
A lightweight Flutter package for bringing Android apps to the foreground. Simple method to reopen or bring your app to foreground when called.
Changelog #
All notable changes to the Self Launcher package will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
1.0.1 - 2024-01-15 #
Improved #
- Enhanced package metadata with proper URLs (homepage, repository, issue tracker)
- Improved documentation with better README.md structure and examples
- Fixed static analysis issues for better code quality
- Added proper MIT license for OSI compliance
- Optimized package structure with .pubignore for cleaner publishing
- Updated package topics for better discoverability
- Enhanced pub.flutter-io.cn score through comprehensive improvements
Fixed #
- Resolved all static analysis warnings
- Cleaned up git repository by removing build artifacts
- Improved package validation for pub.flutter-io.cn publishing
1.0.0 - 2024-01-15 #
Added #
- Initial release of
self_launcher
package - Simple
bringToForeground()
method that brings app to foreground or reopens it - Zero-permission implementation (no special Android permissions required)
- Lightweight Android implementation using standard Intent flags
- Modern Flutter plugin architecture with null safety support
- Comprehensive example app demonstrating core functionality
- Detailed documentation with usage examples and API reference
- Support for Android API level 21+ (Android 5.0+)
Features #
- ✅ Bring app to foreground when running in background
- ✅ Reopen app when completely closed
- ✅ Zero permissions required - uses only standard Android intents
- ✅ Lightweight implementation with minimal code
- ✅ Modern Flutter plugin architecture with null safety
Technical Implementation #
- Uses Android's
PackageManager.getLaunchIntentForPackage()
method - Implements standard Android Intent flags:
FLAG_ACTIVITY_NEW_TASK
: Allows starting from non-activity contextFLAG_ACTIVITY_CLEAR_TOP
: Brings existing activity to frontFLAG_ACTIVITY_SINGLE_TOP
: Prevents creating duplicate activities
- Minimal Android manifest with no special permissions required
- Clean, maintainable codebase following Flutter plugin best practices
Platform Support #
- Android: API level 21+ (Android 5.0+)
- iOS: Not supported (iOS does not allow programmatic app launching)
Dependencies #
- Flutter SDK: >=3.13.0
- Dart SDK: >=3.1.0 <4.0.0
- Android: API level 21+ (Android 5.0+)
Contributing #
We welcome contributions! Please see our contributing guidelines for more information.
Support #
For issues, feature requests, or questions, please use our GitHub issue tracker.