1. Are you ready for the Galaxy S20? Here is everything we know so far!

How to prevent a process in Android 10

Discussion in 'Android Development' started by Techie_Ind, Feb 10, 2021.

  1. Techie_Ind

    Techie_Ind Lurker
    Thread Starter

    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
     



    1. Download the Forums for Android™ app!


      Download

       
  2. Unforgiven

    Unforgiven ...eschew obfuscation...
    Moderator

    Development thread moved to the dev area for better exposure. Good luck!! :)
     
  3. James_Watson

    James_Watson Android Enthusiast

    Would you like to replace the background service with a scheduled job(JobScheduler), which is launched periodically?
    Or try to whitelist your app.
     
Loading...
Similar Threads - prevent process Android
  1. jewu
    Replies:
    2
    Views:
    332
  2. pranaman
    Replies:
    1
    Views:
    338
  3. Mahmoud MABROUK
    Replies:
    0
    Views:
    717
  4. zepking
    Replies:
    5
    Views:
    656
  5. gimommy
    Replies:
    0
    Views:
    361
  6. pstein
    Replies:
    2
    Views:
    397
  7. Alex Ethridge
    Replies:
    31
    Views:
    1,712
  8. tr00don
    Replies:
    0
    Views:
    1,151
  9. RegiOween
    Replies:
    8
    Views:
    609
  10. gw.hicks
    Replies:
    3
    Views:
    608

Share This Page

Loading...