A flutter plugin that brings an in-background android app to the foreground

0 0

bg_launcher

A flutter plugin that brings an in-background android app to the foreground (Android only)

Restrictions on starting activities from the background

Apps running on Android 10 or higher can start activities only when one or more of the following conditions are met:

  • To make the app works try to add SYSTEM_ALERT_WINDOW permission and grant it by the user
    for more info check here background-starts#exceptions

Getting Started

check 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',
    );

GitHub

View Github

Happy
Happy
0 %
Sad
Sad
0 %
Excited
Excited
0 %
Sleepy
Sleepy
0 %
Angry
Angry
0 %
Surprise
Surprise
0 %

Average Rating

5 Star
0%
4 Star
0%
3 Star
0%
2 Star
0%
1 Star
0%

Deja una respuesta

Entrada anterior Detecting Depression through facial image analysis and social media
Entrada siguiente A Flutter Application shows school classes, news, subjects for all classes, lessons for all subjects