Firebase iOS Integration

Kerem Çubuk
3 min readNov 24, 2019

--

Firebase iOS Integration

In this document, we are going to add firebase to iOS app. Well, we will also answer these questions in this document.

  • Why should I use Firebase? (opt. reading)
  • How to integrate Firebase to iOS Project or React Native?

You can also access Android Integration story.

Why should I use Firebase?

Firebase is a huge platform for mobile development and web development which has

  • Authentication
  • Analytics
  • Crashlytics
  • Cloud Messaging
  • Automate Testing
  • Database
  • Auto Deployment
  • Hosting
  • Storage

with these features, you can gather all your needs on one platform. Thanks to Firebase, you can reach users and produce faster and more flexible solutions to their needs.

How to integrate Firebase to iOS Project or React Native?

With this integration, you can access all iOS app statistics with one dashboard. You can see these features below.

  • Active Users
  • Number of users
  • Users in last 30 minutes
  • Daily user engagement
  • Location
  • User Demographics

Let’s start to integrate Firebase to iOS app.

First of all, go to firebase console. And follow the steps below.

1. In your Firebase Dashboard click the iOS Icon on Banner.

Firebase Dashboard

2. Complete the inputs and click the Register App button.

step-1
Register App

3. Download config file which name is GoogleService-Info.plist.

Downloading GoogService-info.plist

4. Add your GoogleService-Info.plist file under yourApp > ios > yourAppName folder.

iOS Folder List

5. Add Firebase SDK to your app.

Add Firebase SDK

- Go to yourApp > ios > Podfile file.

Podfile

- Next step of adding SDK. In your terminal cd ios && pod install.

6. Add initialization code.

Add Initialization Code
  • In your appDelegate.m file add Firebase.
appDelegate.m File

7. Run your app. Wait for verification.

Firebase checks your active app

8. Run your app. After complete the verification click to Continue to Console button.

Successfully Integrated

9. Your app added to Firebase successfully!

Firebase Dashboard

Happy Coding with Firebase ❤

Please follow for more medium story in the next story, we will integrate Firebase Authentication to Application. And we will add more stories about all Firebase features.

--

--

Kerem Çubuk

React and React Native Developer in Istanbul. Creator of react-native-boilerplate