iOS

Firebase Auth

Firebase phone authentication has been used for driver and rider's authenticatioin proccess. 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 docuemntation 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 12.1+.

Cocoapods

Cocoapods is the must used dependency manager used for xcode. before compiling the project in XCode you will need to run pod install inside ios folder so all dependencies will be downloaded and installed. This process might take a few minutes.

Backend

In common folder there is a file named Config.swift. Open this file and edit Backend value to dashboard address.
Config.swift
1
class Config {
2
static var Backend: String = "http://localhost:8080/"
3
}
Copied!

Bundle Identifier

In previous sections you have selected an 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 repective project setting's page.
You should be ready to compile and run the application now.
Last modified 9mo ago