# How to Deploy Firebase Functions

{% hint style="warning" %}
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.
{% endhint %}

## 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](https://enappd.com/blog/firebase-cloud-functions-in-ionic-4-complete-guide/32)

{% embed url="<https://enappd.com/blog/implement-ionic-4-firebase-push/34>" %}

## 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`&#x20;

Replace the URL for **getDriver** function -&#x20;

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

with your own **getDriver** URL

### Driver App

1. Home Page - `home.page.ts`&#x20;

#### Accept Ride

Replace&#x20;

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

with your own **acceptRide** URL

#### Reject Ride

Replace&#x20;

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

with your own **rejectRide** URL

#### Complete Ride

Replace&#x20;

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

with your own **completeRide** URL


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://enappd.gitbook.io/ionic-taxi-booking-app-starter/extra/firebase-functions/how-to-deploy-firebase-functions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
