Firebase Realtime Database addValueEventListener
问题 I have set setPersistenceEnabled to true and I am using a addValueEventListener and inside that a onDataChange method. Will my app always download the data from server every time that method is called or will my app get the data from the cache if available? When I am offline I am sure that the data comes from the cache. #askFirebase 回答1: When you attach a listener with addValueEventListener() and the data is available in the local disk cache, the onDataChange() method will immediately fire