bring_app_to_foreground 0.1.1
bring_app_to_foreground: ^0.1.1 copied to clipboard
Bring a Flutter app to the foreground from the background on Android (incoming VoIP/dispatch calls, alarms) via the Display-over-other-apps permission.
0.1.1 #
- Shorten the package description to pub.dev's recommended length.
- Document requirements and limitations: manual user grant of the overlay permission, the need for a background waker when the process is killed, and the attached-Activity requirement. No API changes.
0.1.0 #
- Initial release.
BringAppToForeground.bringToFront()— pull the app's own task to the foreground from the background on Android, waking the screen and showing over the lockscreen.BringAppToForeground.hasPermission()— check the "Display over other apps" (SYSTEM_ALERT_WINDOW) permission.BringAppToForeground.requestPermission()— open the system settings page to grant it.- Android-only; all methods are safe no-ops on other platforms.
SYSTEM_ALERT_WINDOWis declared in the plugin manifest and merges into the host app automatically.