Search⌘ K
AI Features

Trigger Functions Directly

Understand how to directly trigger Firebase Cloud Functions through HTTP requests and from your web application. Learn to write functions using onRequest handlers, utilize the Firebase Admin SDK, and handle responses effectively to integrate automated backend operations with client interactions.

In the Introduction to Cloud Functions lesson, we mentioned that Cloud Functions could either be called directly or triggered in response to an event. Since we have a brief overview of how Cloud Functions work, let’s go deeper to see ways in which we can directly invoke our Cloud Functions.

There are three ways we can call Firebase Cloud Functions directly, each with its unique operation and usage. These methods are as follows:

  • Schedule a Cloud Function to run at specific times or intervals.
  • Trigger a function in response to an HTTP request.
  • Calling a Cloud Function directly from the Firebase App. This means calling it from the client.

For this course, we’ll focus on triggering functions via HTTP requests and calling functions directly from ...