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.
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)
MethodChannel
PluginUtilities.getCallbackHandle
Alas, there are many plugins available now:
1.4m articles
1.4m replys
5 comments
57.0k users