Reputation: 121
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.
Upvotes: 10
Views: 14501
Reputation: 1
I have been trying to get my app to run in the background for quite a while now but couldnt find a solution that fit my needs. However i have finally found something that I thought might benefit others looking for a solution. The workmanager package has an unpublished branch that provides the ability to run background code on ios upon closing the app. There seem to be little limitations except a time limit. find the pull request here:
and the branch here:
Upvotes: 0
Reputation: 6646
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
, and PluginUtilities.getCallbackHandle
(PluginUtilities)Alas, there are many plugins available now:
Upvotes: 7