FetchService is running always in backgound?

Created on 12 May 2017  路  5Comments  路  Source: tonyofrancis/Fetch

i have noticed that after calling fetch.release(); method on fetch instance the FetchService is not stop it is running forever even if not downloading anything. did i need to do anything else to stop this service.

bug

Most helpful comment

This has been fixed and will make it in the next version of Fetch 1.1.2. The new version will be released in a few days. Please check back.

All 5 comments

@KulwinderSinghRahal The FetchService is not stopped when calling fetch.release(). The FetchService only stops after all downloads are complete. Are you able to reproduce this bug?

Actually I am creating Download manager app with your library therefore I'm creating Service in which getting instance of Fetch. my service class handles actions like start,stop,pause etc. So when my app is destroyed I'm sending Bus(otto) message to service to stop my service class if not downloading anything. it destroy the service and release fetch if not downloading but after destroying service fetchservcie is still running and after some time my service is also restarted.

I'm also want to know that is I'm doing it right or there any better way to do it with help of library ?

Thanks for this amazing library!

As the OP said, the service runs in the background even after all downloads have been completed.

Tried calling remove(id) removeAll() and release() but the service doesn't stop. Is this the correct way to stop the service?

It seems that there is a bug thats preventing fetch from stopping properly. I am looking into it and will update as soon as possible. In the mean time a work around is to call context.stopService(new Intent(context,FetchService.class)).

This has been fixed and will make it in the next version of Fetch 1.1.2. The new version will be released in a few days. Please check back.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

DeevD picture DeevD  路  3Comments

jpvs0101 picture jpvs0101  路  5Comments

cepero91 picture cepero91  路  4Comments

MohammadFneish7 picture MohammadFneish7  路  4Comments

marcin-adamczewski picture marcin-adamczewski  路  5Comments