Tips: Setup Firebase

If you do not have an account on Firebase, please do so by going to the official site and get yourself a free account. When you have your account, come back here so we could go ahead and create our first firebase project.

You will be led to the Firebase Console where you could create your project. Click Add Project. Fill in the necessary information and go ahead and click Create Project.

Once you have completed the step, you will be led to the front screen. In our case, we will be using iOS so go ahead and click Add Firebase to your iOS App.

There are at least 5 steps that needs to be completed here. First, we are going to add our iOS Bundle ID which can be found by first creating your XCode Project – you will have to create your project on XCode or you wont be able to find your Bundle ID. Then give it a random nickname.

Once you are through Step 1, the next step requires you to download the Config file which is called GoogleService-Info.plist. Download that and add it onto your project.

The following step requires you to add Firebase SDK through Cocoapods. If you are not familiar with Cocoapods, rest assured as I have already prepare a tutorial for you on that. You can check it out here.

Once you are done installing all the requirements for Cocoapods and is familiar with Cocoapods, we will go to the next step of adding the initialization code at AppDelegate

import UIKit
import Firebase

class AppDelegate: UIResponder, UIApplicationDelegate {

  var window: UIWindow?

  func application(_ application: UIApplication,
    didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?)
    -> Bool {
    return true

The last step requires you to run your app to verify the installation. However in most cases, you could just Skip the step if its taking too long.

  • Article By :
    Founder of DaddyCoding. Studied Computer Science, Information System and Information Technology at BYU-Hawaii. Currently spending most of my time researching and learning on helping to expose making iOS apps.

Random Posts

Leave a Reply

Your email address will not be published. Required fields are marked *