5

how can I Navigate to a new screen and popup application from background service when app is invisible ?

I know how easy it is to navigate from one route to another in Flutter. We just need to do push and pop but Want to bring my app foreground based on server data i'm running background job for updating user location, Read the documentation but nothing explains how to bring Flutter app to foreground even if mobile screen is off or my flutter app is in background :)?

3 Answers3

0

You can use the app_to_foreground plugin.

It only works for android

Aramillo
  • 3,176
  • 3
  • 24
  • 49
0

You have to use this plugin for doing anything that you want in your project flutter_foreground_task

you can find it here:

Reza Taghizadeh
  • 347
  • 5
  • 11
-1

use this plugin - https://github.com/sunsetjesus/flutter_intent

usage -

FlutterIntent.openApp('app.package.name','app.package.name.MainActivity');
Sqro2
  • 21
  • 1
  • 5