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 […]
Author: Mayank Bhaisora
How to save data to Firebase in Swift Language (iOS)?
Objectives of the blog After reading this blog we will be able to install the Firebase SDK in your project and write code to save data to Firebase database along with the creation of the Firebase project. Benefits of Using Firebase Database It doesn’t matter whether you are working on a small project or your […]
How to Read data from local JSON file in Swift?
Introduction We will assume that we want to have a JSON file added inside our project and want to access its data in swift language. Code You can create a JSON file in Xcode by going to File > New File > Empty and giving the file any name (eg. example.json). The file will be […]
Iterate through each element of JSON string in Android and iOS
Introduction We will assume that we are going to take JSON string as input String and we will look into the process to access each element of JSON String in Android and iOS. Android String jsonString = "{\"animal\":\"Lion\", \"bird\":\"Sparrow\"}"; JSONObject jsonObject = new JSONObject(jsonString); Iterator < ? > keys = jsonObject.keys(); while (keys.hasNext()) { String […]