{"id":25198,"date":"2019-03-12T12:51:37","date_gmt":"2019-03-12T12:51:37","guid":{"rendered":"https:\/\/www.knowband.com\/blog\/?p=25198\/"},"modified":"2022-07-18T14:23:13","modified_gmt":"2022-07-18T14:23:13","slug":"fetch-data-firebase-swift-language-ios","status":"publish","type":"post","link":"https:\/\/www.knowband.com\/blog\/tips\/fetch-data-firebase-swift-language-ios\/","title":{"rendered":"How to fetch data from Firebase in Swift Language (iOS)?"},"content":{"rendered":"<h2><strong>Objectives of the blog<\/strong><\/h2>\n<p><a href=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2019\/03\/Main-Banner-Firebasce-2-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-817050\" src=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2019\/03\/Main-Banner-Firebasce-2-1.png\" alt=\"How to fetch data from Firebase in Swift Language (iOS)?\" width=\"760\" height=\"300\" srcset=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2019\/03\/Main-Banner-Firebasce-2-1.png 760w, https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2019\/03\/Main-Banner-Firebasce-2-1-300x118.png 300w\" sizes=\"auto, (max-width: 760px) 100vw, 760px\" \/><\/a><\/p>\n<p>After reading this blog we will be able to understand the process to fetch data from Firebase. This process includes installation of Firebase SDK and implementation of code to fetch data from Firebase.<\/p>\n<h3><strong>Pre-requisites<\/strong><\/h3>\n<p>We need to write swift code to fetch the data from Firebase. For this first we will have to create the Firebase project. Follow the steps given below to create the Firebase project &#8211;<\/p>\n<p><strong>1.<\/strong> Go to <a href=\"https:\/\/console.firebase.google.com\" target=\"_blank\">https:\/\/console.firebase.google.com<\/a><\/p>\n<p><strong>2.<\/strong> Then you will have to create Firebase project by clicking on \u201c<strong>Add Project<\/strong>\u201d button<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2019\/03\/add-project-1.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-25199 size-full\" src=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2019\/03\/add-project-1.png\" alt=\"add-project: How to fetch data from Firebase in Swift Language (iOS)?\" width=\"650\" height=\"406\" srcset=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2019\/03\/add-project-1.png 650w, https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2019\/03\/add-project-1-300x187.png 300w\" sizes=\"auto, (max-width: 650px) 100vw, 650px\" \/><\/a><\/p>\n<p><strong>3.<\/strong> You need GoogleService-Info.plist file for iOS SDK as this file contains the details of the Firebase project which are used by Firebase SDK<\/p>\n<p><strong>4.<\/strong> Then add the plist file in the project<\/p>\n<p><strong>5.<\/strong> Add the following code before the return statement within application<strong>(_:didFinishLaunchingWithOptions:) in AppDelegate.swift file<\/strong><\/p>\n<pre class=\"brush: actionscript3; gutter: true\">FirebaseApp.configure()<\/pre>\n<p><strong>6.<\/strong> Then go to \u201c<strong>Database<\/strong>\u201d option from the left menu.<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2019\/03\/Goto-Database.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-25200 size-full\" src=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2019\/03\/Goto-Database.png\" alt=\"goto-database: How to fetch data from Firebase in Swift Language (iOS)?\" width=\"650\" height=\"406\" srcset=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2019\/03\/Goto-Database.png 650w, https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2019\/03\/Goto-Database-300x187.png 300w\" sizes=\"auto, (max-width: 650px) 100vw, 650px\" \/><\/a><\/p>\n<p><strong>7.<\/strong> Select \u201c<strong>Realtime Database<\/strong>\u201d and that is the database for the Firebase project. All the data that is stored in or fetched from is from this location.<\/p>\n<p><strong>8.<\/strong> Firebase setup is completed<\/p>\n<p>Now you will have to download Firebase SDK in the swift. For this you will have to install the following pods.<\/p>\n<ol>\n<li><strong>pod &#8216;Firebase\/Core&#8217; <\/strong><\/li>\n<li><strong>pod &#8216;Firebase\/Database&#8217;<\/strong><\/li>\n<\/ol>\n<p>Let suppose you have the following data in the given structure in the Firebase database &#8211;<\/p>\n<pre class=\"brush: actionscript3; gutter: true\">\/\/ The root of the tree\r\n{\r\n  \/\/ grocery-items\r\n  &quot;grocery-items&quot;: {\r\n \r\n    \/\/ grocery-items\/milk\r\n    &quot;milk&quot;: {\r\n \r\n      \/\/ grocery-items\/milk\/name\r\n      &quot;name&quot;: &quot;Milk&quot;,\r\n \r\n      \/\/ grocery-items\/milk\/addedByUser\r\n      &quot;addedByUser&quot;: &quot;David&quot;\r\n    },\r\n \r\n    &quot;pizza&quot;: {\r\n      &quot;name&quot;: &quot;Pizza&quot;,\r\n      &quot;addedByUser&quot;: &quot;Alice&quot;\r\n    },\r\n  }\r\n}<\/pre>\n<p>&nbsp;<\/p>\n<p>After successful installation of the pods, we can move on to the coding part.<\/p>\n<h3><strong>Code Implementation<\/strong><\/h3>\n<p><a href=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2019\/03\/Main-Banner-Firebasce-3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-817053\" src=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2019\/03\/Main-Banner-Firebasce-3.png\" alt=\"How to fetch data from Firebase in Swift Language (iOS)?\" width=\"760\" height=\"300\" srcset=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2019\/03\/Main-Banner-Firebasce-3.png 760w, https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2019\/03\/Main-Banner-Firebasce-3-300x118.png 300w\" sizes=\"auto, (max-width: 760px) 100vw, 760px\" \/><\/a><\/p>\n<p>All the data points\/nodes are used to access data from Firebase database. We create references to the nodes and then fetch data from that node.<\/p>\n<p>In other words a Firebase reference points to a location in Firebase where data is stored.<\/p>\n<p>First we will have to create reference to the root node of the database structure &#8211;<\/p>\n<pre class=\"brush: actionscript3; gutter: true\">let ref = Database.database().reference(withPath: &quot;grocery-items&quot;)<\/pre>\n<p>or the following way can be used &#8211;<\/p>\n<p>&nbsp;<\/p>\n<pre class=\"brush: actionscript3; gutter: true\">let rootRef = Database.database().reference()\r\nlet ref = rootRef.child(&quot;grocery-items&quot;)<\/pre>\n<p>Reference to the child node which is \u201cmilk\u201d can be created using the following code &#8211;<\/p>\n<pre class=\"brush: actionscript3; gutter: true\">let milkRef = ref.child(&quot;milk&quot;)<\/pre>\n<p>Asynchronous listener can be attached to a reference in order to retrieve data from Firebase using <strong>observe(_:with:)<\/strong> method.<\/p>\n<p>The following code will fetch the data and keep listening to the data changes on the database. As soon as any change is made in the database, the new snapshot of the node\/reference is fetched and we get the updated data as soon as any change is made in the database.<\/p>\n<p>&nbsp;<\/p>\n<pre class=\"brush: actionscript3; gutter: true\">ref.observe(.value, with: { snapshot in\r\n  \/\/ This is the snapshot of the data at the moment in the Firebase database\r\n  \/\/ To get value from the snapshot, we user snapshot.value\r\n  print(snapshot.value as Any)\r\n})<\/pre>\n<p>Then the snapshot values can be parsed and used in the app.<\/p>\n<p>One big advantage of using <strong>observe<\/strong> method over <strong>observeSingleEvent<\/strong> method is that you don\u2019t have to call the function again and again as the updated data is fetched from the database as soon as any value is changed in the database.<\/p>\n<h3><strong>Summary<\/strong><\/h3>\n<p>Now you should be able to fetch the data from the Firebase database in swift using Firebase SDK.<\/p>\n<p>Please feel free to get in touch with us at support@knowband.com for any issues.<\/p>\n<p>We also provide <a href=\"https:\/\/www.knowband.com\/mobile-app\/\">No Code Mobile App<\/a> solutions for Prestashop, Opencart, Magento\u00a02 and Woocommerce. Know more here:<br \/>\n<iframe loading=\"lazy\" width=\"660\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/W5A2qMachUw\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Objectives of the blog After reading this blog we will be able to understand the process to fetch data from Firebase. This process includes installation of Firebase SDK and implementation of code to fetch data from Firebase. Pre-requisites We need to write swift code to fetch the data from Firebase. For this first we will [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":817049,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_kbui_enabled":"","footnotes":""},"categories":[1111],"tags":[9159,9063,7370,9160,9158],"class_list":["post-25198","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tips","tag-data-fetching","tag-firebase","tag-ios","tag-swift-language","tag-tips"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to fetch data from Firebase in Swift Language (iOS)? | Knowband blog<\/title>\n<meta name=\"description\" content=\"Understand the process to fetch data from Firebase which includes installation of Firebase SDK and implementation of code to fetch data from Firebase.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.knowband.com\/blog\/tips\/fetch-data-firebase-swift-language-ios\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to fetch data from Firebase in Swift Language (iOS)? | Knowband blog\" \/>\n<meta property=\"og:description\" content=\"Understand the process to fetch data from Firebase which includes installation of Firebase SDK and implementation of code to fetch data from Firebase.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.knowband.com\/blog\/tips\/fetch-data-firebase-swift-language-ios\/\" \/>\n<meta property=\"og:site_name\" content=\"Knowband Blog | Ecommerce Modules\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Knowband\" \/>\n<meta property=\"article:published_time\" content=\"2019-03-12T12:51:37+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-07-18T14:23:13+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2019\/03\/Main-Banner-Firebasce.png\" \/>\n\t<meta property=\"og:image:width\" content=\"760\" \/>\n\t<meta property=\"og:image:height\" content=\"300\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Mayank Bhaisora\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@KnowbandPlugin\" \/>\n<meta name=\"twitter:site\" content=\"@KnowbandPlugin\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Mayank Bhaisora\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/tips\\\/fetch-data-firebase-swift-language-ios\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/tips\\\/fetch-data-firebase-swift-language-ios\\\/\"},\"author\":{\"name\":\"Mayank Bhaisora\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#\\\/schema\\\/person\\\/8aa4929774f646e515002f1bdb49551e\"},\"headline\":\"How to fetch data from Firebase in Swift Language (iOS)?\",\"datePublished\":\"2019-03-12T12:51:37+00:00\",\"dateModified\":\"2022-07-18T14:23:13+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/tips\\\/fetch-data-firebase-swift-language-ios\\\/\"},\"wordCount\":513,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/tips\\\/fetch-data-firebase-swift-language-ios\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/Main-Banner-Firebasce.png\",\"keywords\":[\"data fetching\",\"firebase\",\"iOS\",\"swift language\",\"tips\"],\"articleSection\":[\"Tips\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/tips\\\/fetch-data-firebase-swift-language-ios\\\/\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/tips\\\/fetch-data-firebase-swift-language-ios\\\/\",\"name\":\"How to fetch data from Firebase in Swift Language (iOS)? | Knowband blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/tips\\\/fetch-data-firebase-swift-language-ios\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/tips\\\/fetch-data-firebase-swift-language-ios\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/Main-Banner-Firebasce.png\",\"datePublished\":\"2019-03-12T12:51:37+00:00\",\"dateModified\":\"2022-07-18T14:23:13+00:00\",\"description\":\"Understand the process to fetch data from Firebase which includes installation of Firebase SDK and implementation of code to fetch data from Firebase.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/tips\\\/fetch-data-firebase-swift-language-ios\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.knowband.com\\\/blog\\\/tips\\\/fetch-data-firebase-swift-language-ios\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/tips\\\/fetch-data-firebase-swift-language-ios\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/Main-Banner-Firebasce.png\",\"contentUrl\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/Main-Banner-Firebasce.png\",\"width\":760,\"height\":300,\"caption\":\"How to fetch data from Firebase in Swift Language (iOS)?\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/tips\\\/fetch-data-firebase-swift-language-ios\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to fetch data from Firebase in Swift Language (iOS)?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#website\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/\",\"name\":\"Knowband Blog | Ecommerce Modules\",\"description\":\"Magento, Prestashop, Opencart, Shopify\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#organization\",\"name\":\"Knowband Blog | Ecommerce Modules\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/09\\\/cropped-knowband_logo-v2.png\",\"contentUrl\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/09\\\/cropped-knowband_logo-v2.png\",\"width\":153,\"height\":61,\"caption\":\"Knowband Blog | Ecommerce Modules\"},\"image\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/Knowband\",\"https:\\\/\\\/x.com\\\/KnowbandPlugin\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#\\\/schema\\\/person\\\/8aa4929774f646e515002f1bdb49551e\",\"name\":\"Mayank Bhaisora\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/plugins\\\/wp-user-avatar\\\/deprecated\\\/wp-user-avatar\\\/images\\\/wpua-96x96.png\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/plugins\\\/wp-user-avatar\\\/deprecated\\\/wp-user-avatar\\\/images\\\/wpua-96x96.png\",\"contentUrl\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/plugins\\\/wp-user-avatar\\\/deprecated\\\/wp-user-avatar\\\/images\\\/wpua-96x96.png\",\"caption\":\"Mayank Bhaisora\"},\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/author\\\/mbhaisora\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to fetch data from Firebase in Swift Language (iOS)? | Knowband blog","description":"Understand the process to fetch data from Firebase which includes installation of Firebase SDK and implementation of code to fetch data from Firebase.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.knowband.com\/blog\/tips\/fetch-data-firebase-swift-language-ios\/","og_locale":"en_US","og_type":"article","og_title":"How to fetch data from Firebase in Swift Language (iOS)? | Knowband blog","og_description":"Understand the process to fetch data from Firebase which includes installation of Firebase SDK and implementation of code to fetch data from Firebase.","og_url":"https:\/\/www.knowband.com\/blog\/tips\/fetch-data-firebase-swift-language-ios\/","og_site_name":"Knowband Blog | Ecommerce Modules","article_publisher":"https:\/\/www.facebook.com\/Knowband","article_published_time":"2019-03-12T12:51:37+00:00","article_modified_time":"2022-07-18T14:23:13+00:00","og_image":[{"width":760,"height":300,"url":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2019\/03\/Main-Banner-Firebasce.png","type":"image\/png"}],"author":"Mayank Bhaisora","twitter_card":"summary_large_image","twitter_creator":"@KnowbandPlugin","twitter_site":"@KnowbandPlugin","twitter_misc":{"Written by":"Mayank Bhaisora","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.knowband.com\/blog\/tips\/fetch-data-firebase-swift-language-ios\/#article","isPartOf":{"@id":"https:\/\/www.knowband.com\/blog\/tips\/fetch-data-firebase-swift-language-ios\/"},"author":{"name":"Mayank Bhaisora","@id":"https:\/\/www.knowband.com\/blog\/fr\/#\/schema\/person\/8aa4929774f646e515002f1bdb49551e"},"headline":"How to fetch data from Firebase in Swift Language (iOS)?","datePublished":"2019-03-12T12:51:37+00:00","dateModified":"2022-07-18T14:23:13+00:00","mainEntityOfPage":{"@id":"https:\/\/www.knowband.com\/blog\/tips\/fetch-data-firebase-swift-language-ios\/"},"wordCount":513,"commentCount":0,"publisher":{"@id":"https:\/\/www.knowband.com\/blog\/fr\/#organization"},"image":{"@id":"https:\/\/www.knowband.com\/blog\/tips\/fetch-data-firebase-swift-language-ios\/#primaryimage"},"thumbnailUrl":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2019\/03\/Main-Banner-Firebasce.png","keywords":["data fetching","firebase","iOS","swift language","tips"],"articleSection":["Tips"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.knowband.com\/blog\/tips\/fetch-data-firebase-swift-language-ios\/","url":"https:\/\/www.knowband.com\/blog\/tips\/fetch-data-firebase-swift-language-ios\/","name":"How to fetch data from Firebase in Swift Language (iOS)? | Knowband blog","isPartOf":{"@id":"https:\/\/www.knowband.com\/blog\/fr\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.knowband.com\/blog\/tips\/fetch-data-firebase-swift-language-ios\/#primaryimage"},"image":{"@id":"https:\/\/www.knowband.com\/blog\/tips\/fetch-data-firebase-swift-language-ios\/#primaryimage"},"thumbnailUrl":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2019\/03\/Main-Banner-Firebasce.png","datePublished":"2019-03-12T12:51:37+00:00","dateModified":"2022-07-18T14:23:13+00:00","description":"Understand the process to fetch data from Firebase which includes installation of Firebase SDK and implementation of code to fetch data from Firebase.","breadcrumb":{"@id":"https:\/\/www.knowband.com\/blog\/tips\/fetch-data-firebase-swift-language-ios\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.knowband.com\/blog\/tips\/fetch-data-firebase-swift-language-ios\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.knowband.com\/blog\/tips\/fetch-data-firebase-swift-language-ios\/#primaryimage","url":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2019\/03\/Main-Banner-Firebasce.png","contentUrl":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2019\/03\/Main-Banner-Firebasce.png","width":760,"height":300,"caption":"How to fetch data from Firebase in Swift Language (iOS)?"},{"@type":"BreadcrumbList","@id":"https:\/\/www.knowband.com\/blog\/tips\/fetch-data-firebase-swift-language-ios\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.knowband.com\/blog\/fr\/"},{"@type":"ListItem","position":2,"name":"How to fetch data from Firebase in Swift Language (iOS)?"}]},{"@type":"WebSite","@id":"https:\/\/www.knowband.com\/blog\/fr\/#website","url":"https:\/\/www.knowband.com\/blog\/fr\/","name":"Knowband Blog | Ecommerce Modules","description":"Magento, Prestashop, Opencart, Shopify","publisher":{"@id":"https:\/\/www.knowband.com\/blog\/fr\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.knowband.com\/blog\/fr\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.knowband.com\/blog\/fr\/#organization","name":"Knowband Blog | Ecommerce Modules","url":"https:\/\/www.knowband.com\/blog\/fr\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.knowband.com\/blog\/fr\/#\/schema\/logo\/image\/","url":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2016\/09\/cropped-knowband_logo-v2.png","contentUrl":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2016\/09\/cropped-knowband_logo-v2.png","width":153,"height":61,"caption":"Knowband Blog | Ecommerce Modules"},"image":{"@id":"https:\/\/www.knowband.com\/blog\/fr\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/Knowband","https:\/\/x.com\/KnowbandPlugin"]},{"@type":"Person","@id":"https:\/\/www.knowband.com\/blog\/fr\/#\/schema\/person\/8aa4929774f646e515002f1bdb49551e","name":"Mayank Bhaisora","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.knowband.com\/blog\/wp-content\/plugins\/wp-user-avatar\/deprecated\/wp-user-avatar\/images\/wpua-96x96.png","url":"https:\/\/www.knowband.com\/blog\/wp-content\/plugins\/wp-user-avatar\/deprecated\/wp-user-avatar\/images\/wpua-96x96.png","contentUrl":"https:\/\/www.knowband.com\/blog\/wp-content\/plugins\/wp-user-avatar\/deprecated\/wp-user-avatar\/images\/wpua-96x96.png","caption":"Mayank Bhaisora"},"url":"https:\/\/www.knowband.com\/blog\/author\/mbhaisora\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/posts\/25198","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/comments?post=25198"}],"version-history":[{"count":5,"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/posts\/25198\/revisions"}],"predecessor-version":[{"id":817054,"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/posts\/25198\/revisions\/817054"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/media\/817049"}],"wp:attachment":[{"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/media?parent=25198"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/categories?post=25198"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/tags?post=25198"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}