How do I Enable Offline Support? | Get to know Cloud Firestore #9

preview_player
Показать описание
Offline support in Cloud Firestore can help users interact with your app even when there is no network connectivity. But how does offline mode work? How do you enable it? And what does it mean when you read or write to your cached data? In this episode, Todd explains how offline mode works underneath the hood, and some gotchas you should look out for. Watch to find out more!

This video is also subtitled in Chinese, Indonesian, Italian, French, German, Japanese, Korean, Portuguese, and Spanish.

Рекомендации по теме
Комментарии
Автор

Really had me there with the buffering, almost contacted my ISP.

immortaleternal
Автор

Success listeners for write operations not getting called while offline is indeed tricky. I'm glad I heard that here because I had some places where it broke my offline functionality.

codinginflow
Автор

The best "documentation" on a library ever :)

kirill
Автор

01:11 What it means when you go into offline mode?
01:45 Read data
04:30 Write data

*Questions*
07:00 How large of a cache do we actually keep to store all that offline data?
08:33 Why are you seeing a lot of duplicate data calls?
09:55 What's up with the web, why isn't offline mode enabled by default?

*Gotcha*
11:13 With document writes, the callback to a document doesn't get called until the write has actually been confirmed on the server.
12:14 Transactions will fail when you're offline.
12:42 On the cache right now, there are no indexes.

leeboyin
Автор

This is so cool. I don't have to go and setup a local db, try and sync it with a server (so much work), and this works by default! Turned on flight mode and the magic happens.. and I did not even know about this feature.. Respect!

wesleybarnes
Автор

Not just the buffering part was nice, but the overall video is helpful. When the video was buffering(for real) for the second time, you got me there also.

brialcorp
Автор

The buffering part was lit btw great content as usual

ARITRAMUKHERJEEjan
Автор

To avoid the "last write win" from the conflict resolution, you talked about security rules and cloud function.. I guess "transaction" can also do the work right ?

I look forward your blog post on that.

KelvinWKiger
Автор

Most people who searched for this video about billing, your answer is here: 13:15. Yesm we are devs, we think like this, and yes we would provide a bad user experience for the app to bill us less :)

bennyswayofficial
Автор

This is absolutely hilarious... I wish all tutorials were like this

PeterBernardin
Автор

incredible. there is no miracle, but this offline technology is close to heaven.

mariolopes
Автор

The one thing about offline support is that it's much harder to debug (especially security rules). I've reverted to adding await() call so that errors are seen as exceptions otherwise I haven't found a way to see runtime errors in the debugger, they just silently fail

kenargo
Автор

My question would be can Firestore detect which data should be applied first after the offline data gets sync if the device's clock is incorrect when the offline data was stored on the device?

HaizadAnnuar
Автор

Thanks a lot for a great playlist of lessons! Real pleasure to watch, listen and study

Nikon
Автор

Really had me on the buffering part

👍👍

factual
Автор

Really thank you!!! I wish there would be many mini-projects as examples for what you presented in Kotlin. As a beginner of Firestore, all 9 videos are too much information for me. I did try Friendly Eat Codelab, but got stucked at displaying data from Firestore.

trieunguyen
Автор

I just needed content. But you gave me quality and entertainment

AzMahgs
Автор

"I'm sorry he needs to go on the plane with me. 💻 He is a licensed emotional support server" 🤣🤣😆

seccat
Автор

LOL nice intro, I thought I lost connectivity there for a sec

wandiledlamini
Автор

The entire series is so informative & funny :)

jibin