• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

How to prevent a process in Android 10

Techie_Ind

Lurker
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
 
Would you like to replace the background service with a scheduled job(JobScheduler), which is launched periodically?
Or try to whitelist your app.
 
Back
Top Bottom