In this project I used firestore as backend, and I used job service that working every six hours to refresh data and save it into local database using SQLite.
when app start whithout internet get data from SQLite and if internet in connected get data from server(firestor database)