Cloud Functions for Firebase
Notice
This page is archived and might not reflect the latest version of the FlutterFire plugins. You can find the latest information on firebase.google.com:
- Writing and deploying Cloud Functions: https://firebase.google.com/docs/functions/get-started
(and on the rest of the pages at
https://firebase.google.com/docs/functions/
) - Calling Cloud Functions from Flutter: https://firebase.google.com/docs/functions/callable#dart
#
What does it do?Cloud Functions for Firebase let you automatically run backend code in response to events triggered by Firebase features and HTTPS requests. Your code is stored in Google's cloud and runs in a managed environment. There's no need to manage and scale your own servers.
#
Installation#
1. Make sure to initialize FirebaseFollow this guide to install firebase_core
and initialize Firebase if you haven't already.
#
2. Add dependencyOn the root of your Flutter project, run the following command to install the plugin:
#
3. Rebuild your appOnce complete, rebuild your Flutter application:
#
Next StepsOnce installed, you're ready to start using Cloud Functions for Firebase in your Flutter Project. View the Usage documentation to get started.