Android service stops at Nougat

I made an app to display battery and network information in the status bar. For over 10 months, the app has run 100% reliably on Nexus 6P (Marshmallow).

After I switched to Pixel (Nougat 7.1.2) I realized that the service seems to be stopped by the OS. The values ​​in the status bar indicate some old state.

Unfortunately I am not wrong and the problem occurs very rarely (less than once a week). I have already upgraded tobuildToolsVersion '25.0.2'

GitHub project .

Please let me know if you have any idea how to fix or investigate.

+3


source to share





All Articles