I want to show a custom popup message whenever the user disconnects a cellular call. The problem is how to detect when the app is not running. any leads would be helpful.
Asked
Active
Viewed 1.3k times
9
-
https://github.com/flutter/flutter/issues/3671#issuecomment-404237222 This is work in progress. I don't know if there is currently a working solution. – Günter Zöchbauer Jul 26 '18 at 13:28
-
to show a popup from background, try this https://pub.dev/packages/system_alert_window – Vamsi Sep 02 '20 at 18:06
1 Answers
8
It's been a while and there have been many developments.
First, there are some answers at How to create a service in Flutter to make an app to run always in background?
Also, flutter/Background processes will basically point you to medium/Executing Dart in the Background with Flutter Plugins and Geofencing (Sept 2018)
- which is a Geofencing sample that involves a partnership between isolates, native Android/iOS code via
MethodChannel
, andPluginUtilities.getCallbackHandle
(PluginUtilities)
Alas, there are many plugins available now:

TWL
- 6,228
- 29
- 65