A flutter plugin that brings an in-background android app to the foreground
MIT License
A flutter plugin that brings an in-background android app to the foreground (Android only)
Apps running on Android 10 or higher can start activities only when one or more of the following conditions are met:
SYSTEM_ALERT_WINDOW
permission and grant it by the usercheck the example folder for a clearer example
/// `extras` & `action` are useful if you want to determine
/// what you will do when you bring the app from background
/// you can use `receive_intent` package and filter them with
/// the action & extras to show your own UI/ logic ...
BgLauncher.bringAppToForeground(
action: 'FBI-OPEN-UP',
extras: 'https://youtu.be/dQw4w9WgXcQ',
);