Firebase Functions Client Demo

Update this to match your emulator or deployed functions URL

1. onRequest - Simple HTTP Endpoint

Calls a simple HTTP function using fetch(). No Firebase SDK needed.

2. onCall - Callable Function

Calls a callable function using the Firebase JS SDK's httpsCallable().

3. onCall - Division with Error Handling

Demonstrates error handling in callable functions.

รท

4. onCallWithData - Typed Callable Function

Calls a typed callable function that expects specific input/output types.

5. onCall with Auth - Get User Info

Demonstrates extracting authentication data from callable requests. Sign in first, then call the function.

Not signed in

6. Raw POST to Callable (without SDK)

Demonstrates calling a callable function with raw fetch() using the callable protocol.

7. Storage - File Upload (triggers onObjectFinalized)

Uploads a file to Cloud Storage via the Firebase SDK. The emulator automatically triggers onObjectFinalized on the Dart function. Check the emulator logs to see the trigger fire.