tree: 21a4fefc065dcf40f5d3e6c580fa5446f651b6b9 [path history] [tgz]
  1. android/
  2. ios/
  3. lib/
  4. test/
  5. test_driver/
  6. .metadata
  7. pubspec.yaml
  8. README.md
packages/cloud_functions/example/README.md

cloud_functions_example

Demonstrates how to use the cloud_functions plugin.

Function

This example assumes the existence of the following function:

import * as functions from 'firebase-functions';

export const repeat = functions.https.onCall((data, context) => {
  return {
      repeat_message: data.message,
      repeat_count: data.count + 1,
  }
});

This function accepts a message and count from the client and responds with the same message and an incremented count.

Getting Started

For help getting started with Flutter, view our online documentation.