简体   繁体   中英

Where does firestore store cache on Android?

I am using firestore with an Android app and I was testing my "offline mode". I was trying to delete cached data without code and I couldn't. I tried to "force close" my app, and I even tried the "Clear Cache" option within the Android's app info page, and no luck.

Do you know where does firestore store cache? Is "Clear Storage" the only solution to completely delete cache with no code? I'm using a OnePlus 6 device with android 10.

Thanks!

Firestore uses SQLite as its persistence layer. The database is stored in the usual area for persistent databases, which is not in the app "cache" folder. You will indeed have to wipe the entire app storage if you want to remove Firestore's cache.

The SDK does provide a method to clear persistence , but you should be aware that this is for testing only and should not be used in a shipping app.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM