How to prevent a process in Android 10

I have created an android app which is reading the notification and posting it into firebase, In it I have used NotificationListenerService, in Android 10 process is getting killed, it worked fine for 15 days but now it’s getting killed. There are various changes in Android 10 to prevent the background processes, Please help me to run my app in background always

If you have any example for reference that would be really helpful

Many thanks in advance

Sharing is caring!

Leave a Reply