FirebaseFirebase
  • Products
  • Use Cases
  • Pricing
  • Docs
  • Support
Перейти к консоли
Войти
  • Documentation
  • Overview
  • Guides
  • Reference
  • Samples
  • Libraries
  • Products
  • Use Cases
  • Pricing
  • Docs
    • Overview
    • Guides
    • Reference
    • Samples
    • Libraries
    • Перейти к консоли
  • Support
  • Перейти к консоли
  • Guides
  • Set up and manage a project
    • Add Firebase to an app
      • iOS
      • Android
      • Flutter
      • Web
    • Add Firebase to a game
      • Overview
      • C++
      • Unity
    • Add Firebase to a server
    • Configure multiple projects
    • Use Firebase in PWAs
    • Set up and manage projects programmatically
      • Use the REST API
      • Use the Admin SDK
        • Node.js
        • Java
        • Python
    • Manage project access (IAM)
      • Overview
      • Roles
      • Permissions
    • Export project data to BigQuery
  • Analytics
    • Introduction
    • iOS
      • Get Started
      • Log Events
      • Set User Properties
      • Use in a WebView
    • Android
      • Get Started
      • Log Events
      • Set User Properties
      • Use in a WebView
    • C++
      • Get Started
      • Log Events
      • Set User Properties
    • Unity
      • Get Started
      • Log Events
      • Set User Properties
    • Debug Events
    • Track Screens
    • Set a User ID
    • Extend with Cloud Functions
  • Develop
  • Authentication
    • Introduction
    • Users in Firebase Projects
    • iOS
      • Sign in with a pre-built UI
      • Get Started
      • Manage Users
      • Password Authentication
      • Email Link Authentication
      • Google Sign-In
      • Facebook Login
      • Twitter Login
      • GitHub
      • Game Center Sign-in
      • Phone Number
      • Use a Custom Auth System
      • Anonymous Authentication
      • Link Multiple Auth Providers
      • Passing State in Email Actions
      • Handle Errors
    • Android
      • Sign in with a pre-built UI
      • Get Started with the Firebase SDK
      • Manage Users
      • Password Authentication
      • Email Link Authentication
      • Google Sign-In
      • Facebook Login
      • Twitter
      • GitHub
      • Play Games Sign-in
      • Phone Number
      • Use a Custom Auth System
      • Anonymous Authentication
      • Link Multiple Auth Providers
      • Passing State in Email Actions
    • Web
      • Sign in with a pre-built UI
      • Get Started
      • Manage Users
      • Password Authentication
      • Email Link Authentication
      • Google Sign-In
      • Facebook Login
      • Twitter
      • GitHub
      • Phone Number
      • Use a Custom Auth System
      • Anonymous Authentication
      • Link Multiple Auth Providers
      • OAuth Sign-In for Cordova
      • Auth State Persistence
      • Passing State in Email Actions
      • Service Worker Sessions
    • C++
      • Get Started
      • Manage Users
      • Password Authentication
      • Google Sign-in
      • Play Games Sign-in
      • GitHub
      • Facebook Login
      • Twitter Login
      • Phone Number
      • Use a Custom Auth System
      • Anonymous Authentication
      • Link Multiple Auth Providers
    • Unity
      • Get Started
      • Manage Users
      • Password Authentication
      • Google Sign-in
      • Play Games Sign-in
      • GitHub Authentication
      • Facebook Login
      • Twitter Login
      • Phone Number
      • Use a Custom Auth System
      • Anonymous Authentication
      • Link Multiple Auth Providers
    • Admin
      • Introduction
      • Manage Users
      • Import Users
      • Create Custom Tokens
      • Verify ID Tokens
      • Manage User Sessions
      • Manage Session Cookies
      • Control Access with Custom Claims
      • Generating Email Action Links
      • Errors
      • Migration Guide
    • Customize the Email Action Handler
    • Extend with Cloud Functions
    • Case Studies
    • Usage Limits
  • Realtime Database
    • Introduction
    • Choose a Database
    • iOS
      • Get Started
      • Structure Data
      • Read and Write Data
      • Work with Lists of Data
      • Enable Offline Capabilities
    • Android
      • Get Started
      • Structure Data
      • Read and Write Data
      • Work with Lists of Data
      • Enable Offline Capabilities
    • Web
      • Get Started
      • Structure Data
      • Read and Write Data
      • Work with Lists of Data
      • Enable Offline Capabilities
    • Admin
      • Get Started
      • Structure Data
      • Save Data
      • Retrieve Data
    • REST
      • Get Started
      • Structure Data
      • Save Data
      • Retrieve Data
      • Authenticate REST Requests
    • C++
      • Get Started
      • Structure Data
      • Save Data
      • Retrieve Data
    • Unity
      • Get Started
      • Structure Data
      • Save Data
      • Retrieve Data
    • Security & Rules
      • Understand Rules
      • Get Started
      • Secure Data
      • Secure User Data
      • Resolve Insecurities
      • Test Security Rules
      • Index Data
      • Manage Rules via REST
    • Usage and Performance
      • Understand Billing
      • Realtime Database Limits
      • Monitor Database Performance
      • Scale with Multiple Databases
      • Profile Your Database
      • Optimize Database Performance
    • Automated Backups
    • Extend with Cloud Functions
    • Video series: Firebase for SQL Developers
  • Cloud Firestore
    • Introduction
    • Get started
    • Understand Cloud Firestore
      • Compare Cloud Firestore and Realtime Database
      • Data model
      • Data types
      • Index types
      • Database locations
    • Add and manage data
      • Structure data
      • Add data
      • Transactions and batched writes
      • Delete data
      • Manage Cloud Firestore with the Firebase Console
      • Export and import data
    • Read data
      • Get data once
      • Listen for realtime updates
      • Perform simple and compound queries
      • Order and limit data
      • Paginate data with query cursors
      • Enable offline access to data
      • Manage indexes
    • Secure data
      • Overview
      • Get started
      • Structure Security Rules
      • Writing conditions for Security Rules
      • Fix insecure rules
      • Test your Security Rules
      • Securely query data
    • Solutions
      • Overview
      • Aggregation Queries
      • Distributed counters
      • Full-text search
      • Build presence
      • Secure data access for users and groups
      • Delete collections and subcollections
      • Schedule data exports
    • Usage, limits, and pricing
      • Usage and limits
      • Understand Cloud Firestore billing
      • Example Cloud Firestore costs
      • Understand storage size calculations
    • Cloud Firestore integrations
      • Use the Cloud Firestore REST API
      • Use Cloud Firestore and Realtime Database
      • Extend with Cloud Functions
      • Third-party library integrations
    • API reference
      • Android
      • iOS — Swift
      • iOS — Objective-C
      • Web
      • Cloud Functions
      • Node.js
      • Java
      • Python
      • Go
      • C#
      • PHP
      • Ruby
      • REST
      • RPC
    • Samples
      • iOS
      • Android
      • Web
  • Storage
    • Introduction
    • iOS
      • Get Started
      • Create a Reference
      • Upload Files
      • Download Files
      • Use File Metadata
      • Delete Files
      • Handle Errors
    • Android
      • Get Started
      • Create a Reference
      • Upload Files
      • Download Files
      • Use File Metadata
      • Delete Files
      • Handle Errors
    • Web
      • Get Started
      • Create a Reference
      • Upload Files
      • Download Files
      • Use File Metadata
      • Delete Files
      • Handle Errors
    • Admin
      • Get Started
    • Security & Rules
      • Understand Security
      • Get Started
      • Secure Files
      • User Based Security
    • C++
      • Get Started
      • Create a Reference
      • Upload Files
      • Download Files
      • Use File Metadata
      • Delete Files
      • Handle Errors
    • Unity
      • Get Started
      • Create a Reference
      • Upload Files
      • Download Files
      • Use File Metadata
      • Delete Files
      • Handle Errors
    • Extend with Cloud Functions
    • Integrate with Google Cloud
  • Hosting
    • Introduction
    • What can I do with Firebase Hosting?
    • Get started
    • Deploy your site
    • Share project resources across multiple sites
    • Connect a custom domain
    • Serve dynamic content and build microservices
    • Configure hosting behavior
    • Reserved URLs
    • Deploy using the REST API
  • Cloud Functions
    • Introduction
    • What can I do with Cloud Functions?
    • Get started
    • Upgrade to v1.0+ from beta
    • Call functions directly
      • Call functions from your app
      • Call functions via HTTP requests
    • Trigger background functions
      • Cloud Firestore triggers
      • Realtime Database triggers
      • Remote Config triggers
      • Authentication triggers
      • Analytics triggers
      • Crashlytics triggers
      • Cloud Storage triggers
      • Cloud Pub/Sub triggers
    • Write functions
      • Manage deployment and runtime options
      • Write functions in TypeScript
      • Sync, async, and promises
      • Retry asynchronous functions
      • Environment configuration
      • Handling dependencies
      • Optimizing networking
      • Tips & tricks
    • Test functions
      • Run functions locally
      • Unit testing functions
    • Monitor functions
      • Write and view logs
      • Report errors
      • View monitored metrics
    • API Reference
      • Version 2.2
      • Test SDK
      • Protocol specification for https.onCall
      • Version 0.9.1
    • Video Series: learn Cloud Functions
    • Cloud Functions and Firebase
    • Cloud Functions locations
    • Quotas and limits
  • ML Kit
    • Introduction
    • Vision
    • Recognize text
      • Обзор
      • iOS
      • Android
    • Detect faces
      • Обзор
      • Concepts
      • iOS
      • Android
    • Scan barcodes
      • Обзор
      • iOS
      • Android
    • Label images
      • Обзор
      • iOS
      • Android
    • Recognize landmarks
      • Обзор
      • iOS
      • Android
    • Natural Language
    • Identify the language of text
      • Обзор
      • iOS
      • Android
    • Custom Models
    • Use a custom model
      • Обзор
      • iOS
      • Android
    • Use a custom TensorFlow Lite build
      • iOS
      • Android
    • Prepare for Production
    • Reduce app package size
      • Android
    • Protect your Cloud credentials
      • iOS
      • Android
  • Quality
  • Crashlytics
    • Introduction
    • Get started
    • Upgrade from Crash Reporting
    • Migrate Unity apps from Fabric
    • Test your implementation
    • Customize crash reports
    • Get deobfuscated crash reports
    • Extend with Cloud Functions
    • Unity API changes
  • Performance Monitoring
    • Introduction
    • Get started with iOS
    • Get started with Android
    • Automatic traces
    • Monitor custom attributes
    • Track performance issues
    • Disable Performance Monitoring
  • Test Lab
    • Introduction
    • iOS
      • Test with the Firebase Console
      • Test with the gcloud CLI
      • Analyze Test Results
      • Available Devices
    • Android
      • Overview
      • Test with the Firebase Console
      • Test with the gcloud CLI
      • Test with CI Systems
      • Test Lab and Android Studio
      • Analyze Test Results
      • Available Devices
      • Robo Test
      • Test Screenshots
      • Test with Virtual Devices
      • Game Loop Test
      • Beyond Pre-Launch Reports
    • REST API reference
  • Crash Reporting
    • Introduction
    • iOS
      • Report Crashes
    • Android
      • Report Crashes
    • Disable Crash Reporting
  • Grow
  • Predictions
    • Introduction
    • Get Started
    • Use Cases
    • Optimize Monetization Strategies
    • Optimize Promotions
    • Prevent Churn

    • Explore Prediction Results
    • Export Prediction Data to BigQuery
    • Churn and Spend Predictions
    • Risk Tolerance and Model Performance
  • A/B Testing
    • Introduction
    • Create Remote Config Experiments with A/B Testing
    • Create Messaging Experiments with A/B Testing
    • Video Series: Learn A/B Testing
  • Cloud Messaging
    • Introduction
    • About FCM messages
    • iOS
      • Set up an iOS client
      • Configuring APNs with FCM
      • Send a test message
      • Send messages to multiple devices
      • Receive messages
      • Send messages to topics
      • Send to device groups
      • Send upstream messages
      • Send messages with the Firebase Console
    • Android
      • Set up an Android client
      • Send a test message
      • Send messages to multiple devices
      • Receive messages
      • Send messages to topics
      • Send to device groups
      • Send upstream messages
      • Send messages with the Firebase Console
    • C++
      • Set up a C++ client
      • Receive messages
      • Send messages to topics
      • Send to device groups
      • Send upstream messages
      • Send messages with the Firebase Console
    • Unity
      • Set up a Unity client
      • Receive messages
      • Send messages to topics
      • Send to device groups
      • Send upstream messages
      • Send messages with the Firebase Console
    • Web (JavaScript)
      • Set up a JavaScript client
      • Send your first message
      • Send messages to multiple devices
      • Receive messages
      • Send messages to topics
      • Send to device groups
      • Case studies
    • Server environments
      • Your server environment and FCM
      • Migrate to the HTTP v1 API
      • Authorize send requests
      • Build send requests
      • Receive upstream messages
    • Understanding message delivery
  • In-App Messaging
    • Introduction
    • Get started
    • Customize messages
  • Remote Config
    • Introduction
    • API overview
    • Parameters and conditions
    • Templates and Versioning
    • Propagate updates in real time
    • Remote Config and Analytics
    • iOS
      • Use Remote Config on iOS
      • Sample app walkthrough
    • Android
      • Use Remote Config on Android
      • Sample app walkthrough
    • C++
      • Use Remote Config with C++
    • Unity
      • Use Remote Config with Unity
    • REST
      • Use the REST API
    • API reference
      • REST API reference
      • Conditional expression reference
      • Android SDK reference
      • iOS Swift SDK reference
      • iOS Obj-C SDK reference
      • Unity reference
      • C++ reference
  • Dynamic Links
    • Introduction
    • Use Cases
      • Overview
      • Convert Web Users To App Users
      • Invite Users to Your App
      • Reward User Referrals
    • Create Dynamic Links
      • Introduction
      • iOS
      • Android
      • C++
      • Unity
      • REST
      • Manual URL Construction
    • Receive Dynamic Links
      • iOS
      • Android
      • C++
      • Unity
    • View Analytics Data
    • Debug Dynamic Links
    • Link Previews & Social Metadata
  • App Indexing
    • Introduction
    • iOS
      • Get Started
      • Test Your Implementation
      • Enhance Search Performance
    • Android
      • Get Started
      • Refine Public Content Indexing
      • Enable Personal Content Indexing
      • Log User Actions
      • Test Your Implementation
      • Enhance Search Performance
      • Migrate to the Latest API
  • Invites
    • Migrate to Dynamic Links
    • Introduction
    • iOS
    • Android
    • C++
    • Unity
    • Best Practices
    • Case Studies
  • Google Ads
    • Introduction
  • Google AdMob
    • Introduction
    • AdMob with Firebase
    • iOS
      • Get Started
    • Android
      • Get Started
    • C++
      • Get Started
      • Cocos2d-x
      • Rewarded Video
    • Unity
      • Get Started
  • Firebase
  • Docs
  • Guides

Overview

test

test

test.cleanup()

test.makeChange(before, after)

test.mockConfig(config)

test.wrap(cloudFunction)

test.WrappedFunction(data, options)

test.EventContextOptions

test.EventContextOptions

test.EventContextOptions#auth

test.EventContextOptions#authType

test.EventContextOptions#eventId

test.EventContextOptions#params

test.EventContextOptions#timestamp

test.analytics

test.analytics

test.analytics.exampleAnalyticsEvent()

test.analytics.makeAnalyticsEvent(fields)

test.auth

test.auth

test.auth.exampleUserRecord()

test.auth.makeUserRecord(fields)

test.crashlytics

test.crashlytics

test.crashlytics.exampleIssue()

test.crashlytics.makeIssue(fields)

test.database

test.database

test.database.exampleDataSnapshot()

test.database.exampleDataSnapshotChange()

test.database.makeDataSnapshot(val, refPath, app)

test.firestore

test.firestore

test.firestore.exampleDocumentSnapshot()

test.firestore.exampleDocumentSnapshotChange()

test.firestore.makeDocumentSnapshot(data, refPath, options)

test.firestore.DocumentSnapshotOptions

test.firestore.DocumentSnapshotOptions

test.firestore.DocumentSnapshotOptions#createTime

test.firestore.DocumentSnapshotOptions#firebaseApp

test.firestore.DocumentSnapshotOptions#readTime

test.firestore.DocumentSnapshotOptions#updateTime

test.pubsub

test.pubsub

test.pubsub.exampleMessage()

test.pubsub.makeMessage(encodedString, attributes)

test.storage

test.storage

test.storage.exampleObjectMetadata()

test.storage.makeObjectMetaData(fields)

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 3.0 License, and code samples are licensed under the Apache 2.0 License. For details, see our Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Обновлено Апрель 3, 2018

  • Обучение

    • Руководства
    • Справочники
    • Примеры
    • Библиотеки
    • GitHub
  • Наши социальные ресурсы

    • Блог
    • Саммит для пользователей Firebase
    • Facebook
    • Twitter
    • YouTube
  • Поддержка

    • Служба поддержки
    • Правила использования бренда
    • Stack Overflow
    • Google Group
    • Примечания к выпускам
    • Часто задаваемые вопросы
    • Прежняя документация
  • Google Developers
    • Android
    • Chrome
    • Firebase
    • Google Cloud Platform
    • Все продукты
Условия использования Конфиденциальность

Оставить отзыв о...

Текущей странице
Документации
Firebase
Firebase
Продуктах
Нужна помощь? Обратитесь в службу поддержки.