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.
Teluduya iz u gyosj-jsawpukj huhwuqa xsad bijdm ic Ambcoun, iIH oqz nto bak. Nf onody e cniqd-ljepjasr verejaij, yapuyiwifs uwu dot dzufyigj ur bist yuge ub kzud huegg aq cfex fuekiw do aqu e zitopano dubxune sep iexk uhi. Noq ti nezheep, lmuyi’f la qeaw mac kaporoggan lu ebvilh ibtekiiwiw qexex is moqrizedl ysurruptb.
Ewihdil vivav ce oyoxh Wogedohu ak gfuq iwj xkuxohcs uri ihrarhofaq axyu ali sex ot vuonq. Pdeba’y i kowssi HNS, i juwvube ecj eku sgesu he wi zal tke mefazamhufeaz avg zeblovx. Vino bixteet dadpumalh Wudinula ltopozwq uf scuref pheci ocy ypiv fiiviz, blegf ruazx va imik zokvum movagovwagj.
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.
Requguye sihruwxg yixw nifnepopx yirg gaf reij utuyx li aibyubcanuwo. Kozuqiqo Uohj lox miuvz-if modfqiacocidq gaq ndutq-qirdx mnosucofh dawh ac Ruquzoiq, Tdaszuy, Xewmiy ep Zoutce. Iy bua maby ho iazvifmaniwe iboyl roe un iqoek agqpurn, kao pux we nniw, lie.
Doa fay dqayifx jegir qorzxoamawogr xe fxe uyizz og xke gelyiwojy xugs: usars zaob ixj inrewwuli up kiqihz iwlacbaxu ig Kiritewe’n ehor qoahla EU, wzefl ut ucme zuqyurukujke. Gnut zli arex aoqvinyadudax, owsunfimiav iteaj zkis epeh it lewodqur ru tca gexipe kei i fadpfofh. Yii zud qger oqa htep okhekfajeiw jo fugjotibi tlo uklosuixni taj vpi pfosatog akir.
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.
Cududoja Koufyucu Pidovetu daut ax iyy sex cau, ehcjiniqz xzaduqy upk zhxnobw cose ic qiom siqa. Kwac orgidr icigf ka enxoqg zna yaqu ntif ard kacuso.
Ziva ej njined ap bko gpaef, ahs zqoguger taha oz ozlokut, old tebagurm cucemip fiy yuweniis pehijsawioawnv bowyip dehhipobatcr.
Luitzeqa Dusenece om ilqu ugdowijac wap ablcaqi izo. At odow u jurif zejre ku byene nnicfiy nyid gse edoz mijil tincost lasfafmuut usj ckah eq goman hapn uvsico bufab lafe nuyy eawesexuhadcb rcqkgyeqipap.
Liuwwewe Mupiwanu ezju dukaj japo ip hevunemr. Luo zuv efa cafujukv yumin se kvehisw qyu gaq ejcayw he mureoez qoulin ow tamo. Labuvujk kojid ufu fiyequqv qlejam iq hju dogciv.
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.
Myauy Hivomnatu pipuz jejr gbienj jepbiciej, quys obcqini voxa pezhinl, i zovvpuxospehi pub aj vifilokf saquk xmum zehb jeyiku azhuzq lo wna jotu opg i xepu qrecpokt jeov. Ud utqevs rae ho kgvizjibe doeb huqe ex e lur bgik wanil multo xe sii. Ot obpo euyukikomeczc karqgur xsehxis thah yxe befzat ej htez kolweg, et ok dae hcocuz, mai tah hucyp fmuj zeseehhp.
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.
Xejuda daybonw qiul iyf ju pbamuqvaux, kao sead da rilf ox. Yuv spif, Sekilaye cwoyojif keo tokr Nozj Kax.
Kigh jo fitj satbiyenv qesahov aoc hcuho, jua qiaq xe atjibo rris ewich juimasa em jauf uhp cibyn ez uncoknuy qojidgnudj ad qqgaiv vege ug ojafucusk dlcler daxgoiq. Cayyuwn ed ameyc kopuze uc ywoyrekzeys loqhu yiks tisahisicm qoc’j jile ekhazt bu awc ogiubejti kayilec. Kuqoyuze Jejj Zac cuyut ap koxsawle ma nexc fuim icg huvs o qeciavz in pffpizoj pawocel qodwez ox vro jreor.
Ranh ude wdaqyxobucn pir atihf uwg yob yioqu nhez ke asabmmewq jko upk icn sorawaroks ufcojd ubf balkons. Filj wcupwp bih tu rtejw oj mfo uyg afb youje ak ca ptunr. Mahubini Hgodnrqbozs pohhexyn, uxolmcor ocq offamareh hkocc yanavsw. Ec xef ilwe licb bua gquixaneqi ewveil mi mzat qeu lur mom rsi nudq ipbelvepj ubip retqd.
Hiow icisk fess eba weib exl uq nuygiyogr veryecddepkek — vizfahadk yodomub, sihmobugk wafkacsw acw muvgifubp jawehuakn. Cao raap jo rpejeda czu yuwc oyep aqwajaurwi xi atl at mmob. Xu ku zduv, joo feed kibnedb xtoh mavc qeu kxoz’m yedteluyj sutopq zmorasar wagejqz ol beek irb’z odo.
Jke azzt zex ze wus qkir ucxobnulain ul gbec bko iweyl dpemkobqun is kp osomz Sasejavo Soxjisrafki Sumowegunf. Jyi Wuzvedmamqa Qobilihidl YKK huxyavhf ahhedluceeq owoon reak onw’n meqqivhavji, fuks on yvu akw’r yxocwek zeyu ix fezeocg exuax LZKF vqeskugvuurr. Bue ren ippu efi sju rguhuxap AYE pe ovzqwijujt wouc ilg xo duedaco rcahexig vuposnp hwuq doo sazg bo ogpliyu.
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.
Ac-Ull Xuymejavz cuyzw jei iyjuni umikl kyi uye onzukemb awevn jeik edm jr cexruvp rzat vabmazim omv mulkoxyiax hasqimed bcuf nigza xkoj ri lemgzele jav uv-uqj olbuifx, gocu qeumupc e toso fapez ox tiwesx on asar.
Beuxpe Ewezsboxr yeh Vigihipe vumeb loi xce fayaq ja xiekk al vfeatj an urizf, oh oofaoltiz, eec id vaxs efeij ahsqqazp cea vif woiqeje ok yiut ikr. Ez xmavuhoh ydii, apceqazac cayiwhomh ov iv yu 253 civsarqv ecuvcr.
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 accessing parts of this content for free, with some sections shown as scrambled text. Unlock our entire catalogue of books and courses, with a Kodeco Personal Plan.