How to Deploy Firebase Functions

This section is for the Ionic 4 version of this platform, where Firebase Functions were used to make the apps talk to each other. Ionic 5 version does not use Firebase Functions.

Deploy Firebase function on your own Firebase project

To deploy Firebase functions to your own Firebase project, please follow the instructions given in this detailed tutorial

Replace existing Firebase Function URLs

Once you deploy your own Firebase function on your own Firebase project, you'll get custom URLs for each function. These URLs need to be places in the User, Driver app for the platform to fully connect with your Firebase project.

A typical Firebase Function URL looks like this

https://us-central1-cab-dashboard.cloudfunctions.net/getDriver

Following are the locations where you need to change the Firebase Function URLs

User App

  1. Request Ride Page - requestride.page.ts

Replace the URL for getDriver function -

https://us-central1-cab-dashboard.cloudfunctions.net/getDriver

with your own getDriver URL

Driver App

  1. Home Page - home.page.ts

Accept Ride

Replace

https://us-central1-cab-dashboard.cloudfunctions.net/acceptRide

with your own acceptRide URL

Reject Ride

Replace

https://us-central1-cab-dashboard.cloudfunctions.net/rejectRide

with your own rejectRide URL

Complete Ride

Replace

https://us-central1-cab-dashboard.cloudfunctions.net/completeRide

with your own completeRide URL

Last updated