MAUI Android Foreground Service Stops Running in Background After a Few Minutes and Misses API Calls
I am developing an application using .NET MAUI that needs to continuously listen for missed calls and send the caller’s phone number to an API endpoint. I have implemented a foreground service to keep the app running in the background. The service works for a few minutes, but then stops running when the device goes into idle mode or when the app is not opened, resulting in missed API calls.