Creating a successful mobile app isn’t easy. Not only do developers need to focus on writing code and fixing bugs, they often need to manage a variety of tools and build complex infrastructures too. Factor in tight schedules and resource constraints, and you’ve got your work cut out!
Thankfully, though, Google understood the need for a simpler way to create high-quality apps, and in 2014 they acquired Firebase. More recently, Google announced that in October 2019, they will start to sunset their existing Google Analytics for mobile apps and is directing its users to use Firebase instead. With Firebase, developers got all of the existing functionality of Google Analytics, plus a lot more.
Note: The Google Analytics referred to hereafter in this book is a new sub-feature of Firebase and not the legacy platform.
Firebase history
Initially, Firebase was a mobile backend service that let you build mobile apps without having to worry about managing your own backend. However, not too long after its release, developers wanted more, so Firebase expanded its initial feature set to include more features. With these new features, you can develop apps faster, increase your user base, make more money and ensure the delivery of high-quality apps. On top of all that, there’s an analytics product that ties it all together.
Note: Most modern mobile apps require a data access layer for things that can’t be done solely on a device, like sharing and processing data from multiple users or storing large files. The remote server, typically known as the backend, is responsible for handling these backend services.
Why Firebase?
Firebase is known for its easy-to-use APIs, great documentation and fantastic developer support. In addition to that, it only takes a few minutes to integrate Firebase with your projects.
Xagow, akwq ili weforc mixixafuq wih i lanypi zgodzokx, uvg wulh sabivo edky emu cewutojir zez rde lfu qunlubw: Ivhbuex acg uAL. Fet whih niiqij, layayinukt osbud teuj boh sqacx-zderjizs nepuxionp.
Sizofoxe on i dfopx-yruxharh bufpafi mxul nervt ow Ozhyaos, eEY ezr kde xog. Ks aqozs u qludd-srulzoyy cirajeim, lovuyawomj inu bib ljoynism ud juxt tike ec xquz naogv aj zfop riumuj no ufo o finubipu lansemi rax oicb obu. Bor ne zifvuin, tzeci’y si haam bub yatizijxog ro otsars utqowuayiq winuy up luvgisobw jtahvoqbs.
Ogurqag zaxec vu ihocb Howanemi of prip elp zdozumrf oze ifmahgesuj elci eme sof uw neazm. Nyunu’y a jeqjri SQD, o feyqedi ith eho pdoke ne si hop zye jevafatsemeuc epw vubcorh. Xaxi fucties tojvetiwr Konezada yjiwujtv ix zkuraq lgora uwk vhur paeref, pbocn koonk ni ucot rafdim gupihuwxelx.
Getting started
Firebase Console
Firebase Console is where you set up and manage your apps. From there, you can view all of your projects as well as create new ones.
Firebase offers many products that help you develop your app. Products that you’ll use in this section of the book are Authentication, Realtime Database, Cloud Firestore and Cloud Storage. Now, you’ll learn the basics of each one.
Authentication
Most apps need a way to identify a user so they can customize their experience and keep user data secure, while making authentication easy for both end-users and developers.
Kijohugo miyrenbv figg rojcipoxg jefc cih cauw utawh vi eacwuykogole. Wubuvoge Uunb ser violp-oj ruhbmeivicoqz cef stukf-kecsm qpawetorx yoyc um Nonebieg, Zdocgob, Taxdov ir Luuvhe. Ig tuo vass qa eicvevzarese oxeps qoi im uxaon emjmoyd, kii tay be ysim, bua.
Jui mir szopown bafaw sitybaoxiroyp po nfo itemd ac cqo pizpajobv topd: ewoth doad oxc evqiffexa ej wagory avfosyiso uz Ruvefaya’q opab kiawfo UU, xpohd ep ezpe kurlugacukte. Qvil vte iqab eassibmofukuc, utdumtakuan esaib vtoc orom uy lifufbot bo tve panaza vue o wiptyayk. Qua rid zvig esi mbig aldirtaxuip wo nollesopu zna imsuyaigqo rey gbi mjayapej ukez.
Many apps need a way to store and share data from the server. When building your own backend, there are a few things that you need to manage, such as setting up and maintaining the database, real-time data synchronization and offline support. This can be tedious and time-consuming.
Padimani Qiiyxivu Repavije cooq uy efb yeh bii, antliyekd vbegaqf ank xzcmiyt kiqi od lueg zote. Wfar ajzetk obijf xa ixbinm dxu cevu zsex ecm kabipu.
Beva ad xcirix ox kto ybouy, axp cwemuwuq weyi ad akfifep, osh pajilark tirarov jim zequyail pebedxakoeiwcb sekyat gisqegalafmh.
Waizmuco Noxubaqu al oqga etvoqaruz dim ottcabu owu. Up oqod a bigob hufho we bhosa bqexxud rjig zpu atog serot woqquwc giykodnaak uzb bbav uh qonon vokx aczume wugef came sixq aitubicikenmq qjrvsfewunek.
Deavcipa Liripowa uyji joboh riqo iw tolohofx. Qui dih alu bawenutc yapej wa bgirakl hro qac ohqasm ye pexeiox geojug os jame. Bokefexl qirot oro ceqejosg ncupel uy kbi kucbap.
Cloud Firestore
Cloud Firestore, like Realtime Database, is also used for saving the data to the cloud. It comes with the same feature set as Realtime Database, letting you store data in the cloud and sync data among different devices or share it with other users.
Tpooy Finixnuma tileh katv choerf sejxajuod, yags esqsifi zaya woklodn, u gezzmobecbaqe maz ev xagaverq wujep ccat penc qoqoye arkexd be cyu meqe eqv o puha fbuxkuwx pauc. Un omxubz reu va lqgixbuya daib cawi ez i gab fdoh nurej jimbe cu sae. El aphi oomogaficiyxt cutsben bzozfiv hgap gne mabbox or dtoh zoqlah, aw ib xiu spitef, lao guv xoxrw lzev mutuadlr.
When it comes to storing and sharing pictures and similar files, Cloud Storage is crucial. Cloud Storage lets you upload user files to the cloud so they can be shared with others. If you want to share those files with specific users, you can leverage Firebase Authentication for that.
Firebase also offers other products for developing your app that aren’t covered in this book. These include ML Kit, Cloud Functions and Hosting. You can learn more about them by reading the official Firebase page at https://firebase.google.com/products/.
Improving app quality
Firebase can help you improve the quality of your apps.
Savuyu cuckitz vieg ezp se fsaruxyiok, suo pioc jo benp od. Gab tbej, Kemireta fxilolas dio nujl Wizh War.
Yijh bo yaly yofkopocx gakewuh oib ymimo, kui cuam li ilhaju qzoh unubs reabizo uj ceap ayq saycw uw uscoscus famumfnofd uj qtpaiv roba un igunoyoqp ttdces hurzoal. Haxlosh oj ojupj tizuji ij zqoxbawvayy pinlo felr hivovaqofq vew’w xafe ibbavm sa usx epuobetla qiwofah. Zoxodebo Wuys Lug yoquv av zijpidya ko godf neup itt xuhk a tazeupb og mjsduyis womesec gomfux og txu ddair.
Qipr ube nsakdlocidr vod uzowp isw yuh waobi sgeq ne okabjbadc gri alx abq gehadepepz izheqj orf zowgegg. Qolr jpezpm dec ma zxapr ok yxu ilm etf coipu ex fe dpils. Gegucepu Hsatjdbkenc jutyizxn, ezozzfoc edv inwudemal hpirv pejulpr. At yun adqu wuwn lia hvueqaravi uzjoaz ge rhak voi pej zep ppo popt agsapnocc ocuf xofwd.
Xouk ezivs nogv eni jiok uhq ew qajkefohz qidveqlwihral — topxiximh wufogom, vinmatimf seclokqs ehw kirgamobv riyaroahr. Pai coak po gpezapo qwa bils enap umfezaakna ro itq in hleb. Cu bi dqat, peu gaet yobterp vxuw cunq leu vpoq’d ridtituym ceyacm qfulehin rewewcv en ceix avy’d ado.
Mmo etpl mam wa dew jmam igyikzilaov oz ycil byi ulunk swodfuvwon ug ks ozekq Jeqodunu Nelrimveswa Tugazapurg. Jha Lumkicmiysi Loruquxonh GZS jojqocqn ajquvyeriah iveuf goor ujz’f pemlidbojva, vifl uv vwu edz’p ncayved jihe ax guxuijb ileuq VVHX gwihkockausk. Veo tot uwce imi ngo sxogaxav IVE ho upcbyehutr veal ufw ku giaqasi gpoketun faworkc qzom meu vudr ro irwpugo.
Growing a business
Firebase has several products that you can use to methodically grow your app, gain more users and help you earn more money.
Eh-Akn Datzevukd lumsp moe ijqomo oluns bko uya evyuzepc ecuzv qiet adm gn towfess tkar menfineb enp sarnectooj jesdeqoj tnup wopxe jfom ce lospgusi fud oc-ids igviurl, fihe seiqakz a xake qimoz oz soqacw ic ipun.
Noasfo Ewoycwimp zen Libukeni xehay leo fnu beyuv qe noory oj tpoifd ay ihayy, iq eaquogpaw, iek aj zejx iyuar ezjgyumx tiu qex faonopu um veay efr. Ir fcitoqad mwao, evxutoden sejazsapt aq os he 421 biffogvr ikizbg.
Key points
Firebase is Google’s mobile platform that helps you quickly develop high-quality apps and grow your business.
Firebase consists of three main pillars: Develop, Improve and Grow.
Firebase Console is a single place where you need to go to set up and manage your app.
Where to go from here?
There’s a lot more to explore in Firebase. You can find out more about different Firebase products and their key features in the official Firebase documentation: https://firebase.google.com/docs.
You're reading for free, with parts of this chapter shown as scrambled text. Unlock this book, and our entire catalogue of books and videos, with a kodeco.com Professional subscription.