Good day. Tell me why the work of the background service on Android can fall off. No error messages occur, the service simply stops working several days after launch. How can you debug this problem when working on the device (find out the reason for the shutdown), or, perhaps, the OS itself stops? I came across this issue at the implementation stage (different types of services were indicated and the priority of their work). In the case of the OS (lack of resources or anything else) - how can this be solved?
Itself is far from mobile development, so I will be grateful for any information. Thank.