I want to detect live phone state in android using Workmanager package while running in background.
I could make periodic task execute every 15 min. But I would like to listen to phone state as and when it changes and then call dart code. Below is screenshot of code running at 15 min interval.
