Jul 28, 2021
Just one more thing. If you have network and database in your app you never, never send data from the network directly to the UI. You always show data from database and update that data when network data comes. For telling user that you don't have fresh data that means you don't have internet connection and you show that message, network checking has nothing to do with data layer.