iOS

Firebase Auth

Firebase phone authentication has been used for driver and rider's authentication process. It provides us with free phone authentication SMS which has been localized for many countries too.

Create Project

Use your own Google account or register for a new one for this app. Then go to firebase console and Then click on add project to create a new project and fill the fields:

Enable Phone Authentication

After you log into Firebase choice firebase auth and enable Phone sign-in method.

Develop -> Authentication -> Setup Sign-In method -> Phone -> Enable -> Save

Add applications

On same projects used for Android application (In case it is part of your setup) create two applications and get GoogleService-Info.plist for each one of them and put them in place Firebase shows for each project in the taxi workspace.

Enable Phone Auth

In order for firebase to verify authenticity of request it requires to setup Silent APNs notifications & reCAPTCHA verification. Prefer to firebase documentation on how to do this and do the steps accordingly for both driver and rider. Enable app verification

Configuration

You are almost finished and ready to compile your apps. but first let's go to client apps customization file and fill some parameters there. Open ios folder with Xcode 13.0+.

Backend

In common folder there is a file named Config.swift. Open this file and edit Backend value to dashboard address.

Config.swift
class Config {
    static var Backend: String = "http://localhost:8080/"
}

Bundle Identifier

In previous sections you have selected a Bundle Identifier when creating Firebase applications on your projects. This identifier looks like com.anything.somethingelse. Open project's settings and set the bundle identifier you chose before on their own respective project setting's page.

You should be ready to compile and run the application now.

Last updated