
Today's video I have talked about how simple it is to store cache of the Firebase Database, in case the user goes offline, they still can access to the cached database, then read and write data into the database as usual.
Just get started by typing this after the FIRApp.configure() line in the didFinishLaunchingWithOptions method in the AppDelegate Class:
// Import Statements
import FirebaseDatabase
// Code
FIRDatabase.database().persistenceEnabled = true
Link to Firebase documentation: https://firebase.google.com/docs/database/ios/offline-capabilities
Help fund my channel on Paypal: http://bit.ly/2c2uq0y
Great deals on Amazon: https://www.amazon.com/shop/influencer-4e0c513b
Shop on Amazon using our affiliate link: http://amzn.to/2bgofns
Shop on NewEgg using our affiliate link: http://bit.ly/2nvjVf3
Get a hosting on Bluehost: http://www.bluehost.com/track/techcoderx
Backup your computer with Backblaze: https://secure.backblaze.com/r/01p50l
Shop on Book Depository using our affiliate link: http://www.bookdepository.com/?a_aid=techcoderx-22
Follow me on Twitter: http://www.twitter.com/techcoderx
Check me out on eBay: http://www.ebay.com.my/usr/tianx0
Follow me on Google+: https://plus.google.com/u/0/110488612892506930385/posts
Contact me on LinkedIn: https://my.linkedin.com/in/eng-tian-xi-3b5b9943
My gear list: https://kit.com/TechCoderX/techcoderx-s-gear-list
Contribute to TechCoderX in cryptocurrency:
ETN: etnk4J6QBtcMew6Xn9PfqNErWdrsj1y4MhTK6knausRi5wgc9eiHhuT5kmHHLVfeWSLgJ4otYa6GFYvWy5eGvEcw6Jcphq4urR
ETH: 0xb446D2E6AA9BE5A844A5D447c36dDB2A5Eeb81b7
▶️ DTube
▶️ IPFS