Open batbrain7 opened 6 years ago
@batbrain7 We can do this by SyncAdapter, I am taking this up! 👍
SyncAdapter is from when mobiles were the size of a room
Neither do we need to have the complex functionality of SyncAdapter, nor do we have time and energy to code and maintain that implementation
Use a simpler, modern solution.
@iamareebjamal Can we then use work manager for that? What I read was to use alarm manager but I think work manager is more good than that, else suggest what is the best acc to you. Thanks.
WorkManager is in alpha and crashes right and left, use Android Job from evernote
@iamareebjamal With respect to the implementation, how should I save the skills locally?
In db
@iamareebjamal And while fetching it shouldn't hit the api directly, it should fetch from the DB and the job scheduler should update the DB with time?
Yes
@iamareebjamal @batbrain7 can I start working in this slowly?
Yes
@iamareebjamal can you please guide how to start working in this issue? Shall I use room persistence or sqlite database?
Both things you mentioned use SQLite
And we are already using Realm in the app
@iamareebjamal thank you sir. I am learning the stuffs and is working in this issue.
@batbrain7 Can I work on this issue?
@nikhil097 go ahead
Can i use Work Manager to implement this feature
First implement the fetching logic and storing and then we'll decide what scheduling library to use
Actual Behaviour
Currently all the skills are fetched from the server, it takes a lot of time to fetch the skills.
Expected Behaviour
The skills should be downloaded offline and then the update should be run in the background and the updated skills should be reflected then.
Would you like to work on the issue?
yes