Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Khi phát triển dự án C++ bằng Firebase, bạn có thể gặp phải những khái niệm lạ lẫm hoặc dành riêng cho Firebase. Trang này nhằm mục đích trả lời những câu hỏi đó hoặc hướng dẫn bạn đến các tài nguyên để tìm hiểu thêm.
Bạn có thể truy cập vào một trong các cộng đồng trực tuyến của chúng tôi nếu có câu hỏi về một chủ đề không được đề cập trên trang này. Chúng tôi cũng sẽ định kỳ cập nhật các chủ đề mới trên trang này, vì vậy, hãy quay lại kiểm tra để xem chúng tôi có thêm chủ đề mà bạn muốn tìm hiểu hay không!
Hỗ trợ thư viện Firebase theo nền tảng
Bảng sau đây mô tả những thư viện Firebase tương thích với những nền tảng nào. Hiện tại, tính năng hỗ trợ máy tính được dùng cho mục đích phát triển – cho phép bạn kiểm thử các tính năng trên máy phát triển mà không cần triển khai cho điện thoại hoặc máy tính bảng nếu được chuỗi công cụ cho phép.
Nền tảng
Android
iOS
tvOS
macOS (bản thử nghiệm)
Windows (thử nghiệm)
Linux (thử nghiệm)
A/B Testing
Phiên bản 8.3.0 trở lên
Analytics
v8.7.0 trở lên
App Distribution
Phiên bản 8.3.0 trở lên
Authentication
Phiên bản 8.3.0 trở lên
Cloud Firestore
Phiên bản 8.3.0 trở lên
Cloud Functions
Phiên bản 8.3.0 trở lên
Cloud Messaging
Phiên bản 8.3.0 trở lên
Cloud Storage
Phiên bản 8.3.0 trở lên
Crashlytics
Phiên bản 8.3.0 trở lên
Dynamic Links
Google Mobile Ads
Realtime Database
Phiên bản 8.3.0 trở lên
Remote Config
Phiên bản 8.3.0 trở lên
Các dịch vụ của Google – tệp cấu hình
Trong quá trình thêm Firebase vào dự án C++, bạn cần thêm một tệp cấu hình Firebase.
Để phát hành một trò chơi C++ trên nền tảng di động, hãy làm theo hướng dẫn cho nền tảng Apple (iOS+) và/hoặc Android để đưa tệp cấu hình Firebase thích hợp vào dự án của bạn.
Để phát triển cho máy tính, bạn cần tạo một phiên bản dành cho máy tính của tệp cấu hình Firebase "dành cho thiết bị di động":
Nếu bạn đã thêm tệp google-services.json Android – Khi bạn chạy ứng dụng, Firebase sẽ xác định vị trí của tệp di động này, sau đó tự động tạo tệp cấu hình Firebase cho máy tính (google-services-desktop.json).
Nếu đã thêm tệp GoogleService-Info.plist của Apple – Trước khi chạy ứng dụng, bạn cần chuyển đổi tệp di động này thành tệp cấu hình Firebase trên máy tính.
Để chuyển đổi tệp, hãy chạy lệnh sau trong cùng thư mục với tệp GoogleService-Info.plist:
Xin lưu ý những điều sau đây về cách chúng tôi tạo SDK C++ cho Firebase:
Các SDK C++ cho Windows, Linux và macOS hoàn toàn là nguồn mở và được lưu trữ trong kho lưu trữ GitHub của chúng tôi.
Các SDK C++ cho iOS, tvOS và Android được xây dựng dựa trên SDK iOS và SDK Android nguồn mở.
Mẫu bắt đầu nhanh
Firebase duy trì một bộ sưu tập các mẫu khởi động nhanh cho API Firebase trên C++. Hãy tìm các mẫu khởi động nhanh này trong kho lưu trữ khởi động nhanh Firebase công khai của chúng tôi trên GitHub.
Mỗi hướng dẫn khởi động nhanh đều có một dự án Xcode cho iOS, một dự án Android Studio và một tệp CMakeLists.txt có thể dùng để tạo dự án trên máy tính (nếu chính sản phẩm Firebase hỗ trợ các mục tiêu trên máy tính).
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-09-05 UTC."],[],[],null,["\u003cbr /\u003e\n\nAs you're developing your C++ project using Firebase, you might discover\nconcepts that are unfamiliar or specific to Firebase. This page aims to answer\nthose questions or point you to resources to learn more.\n\nFeel free to visit one of our online communities if you have questions about a\ntopic not covered on this page. We'll also update this page with new topics\nperiodically, so check back to see if we've added the topic you want to learn\nabout!\n| **Looking for how to get started with Firebase in\n| your C++ projects? Check out our [Getting Started\n| Guide](/docs/cpp/setup).**\n\nFirebase library support by platform\n\nThe following table describes which Firebase libraries are compatible with which\nplatforms. Currently desktop support is intended for development purposes --\nallowing you to test features on your development machine without deploying to a\nphone or tablet if permitted by your toolchain.\n\n| Platform | Android | iOS | tvOS | macOS *(beta)* | Windows *(beta)* | Linux *(beta)* |\n|-------------------|---------|-----|---------|----------------|------------------|----------------|\n| A/B Testing | | | v8.3.0+ | | | |\n| Analytics | | | v8.7.0+ | | | |\n| App Distribution | | | v8.3.0+ | | | |\n| Authentication | | | v8.3.0+ | | | |\n| Cloud Firestore | | | v8.3.0+ | | | |\n| Cloud Functions | | | v8.3.0+ | | | |\n| Cloud Messaging | | | v8.3.0+ | | | |\n| Cloud Storage | | | v8.3.0+ | | | |\n| Crashlytics | | | v8.3.0+ | | | |\n| Dynamic Links | | | | | | |\n| Google Mobile Ads | | | | | | |\n| Realtime Database | | | v8.3.0+ | | | |\n| Remote Config | | | v8.3.0+ | | | |\n\n| **Note:** Crashlytics can detect and symbolicate C++ crashes on iOS, tvOS, and Android. To *customize* crash reports, though, you must use the [Apple platforms (iOS+) SDK](/docs/crashlytics/customize-crash-reports?platform=ios) or the [`crashlytics.h` header for Android](/docs/crashlytics/ndk-reports#customize-ndk-crash-reports).\n\nGoogle services -- config files\n\nAs part of adding Firebase to your C++ project, you need to add a Firebase\nconfiguration file.\n\n- To ship a C++ game on a mobile platform, follow the instructions for\n [Apple platforms (iOS+)](/docs/ios/setup#add-config-file) and/or\n [Android](/docs/android/setup#add-config-file) to include the appropriate\n Firebase configuration file in your project.\n\n- To develop for desktop, you'll need to create a desktop version of the\n \"mobile\" Firebase configuration file:\n\n - If you added the Android `google-services.json` file --- When you run your\n app, Firebase locates this mobile file, then automatically generates a\n desktop Firebase config file (`google-services-desktop.json`).\n\n - If you added the Apple `GoogleService-Info.plist` file --- Before you run your\n app, you need to convert this mobile file to a desktop Firebase config file.\n To convert the file, run the following command from the same directory as\n your `GoogleService-Info.plist` file:\n\n generate_xml_from_google_services_json.py --plist -i GoogleService-Info.plist\n\n | **Note:** The desktop Firebase C++ SDK will search the current working directory first for `google-services-desktop.json` then for `google-services.json`. You can also [manually load](/docs/reference/cpp/class/firebase/app-options#classfirebase_1_1_app_options_1a54f8d0909118ba7937362f36a259d91c) a configuration or [create it in code](/docs/reference/cpp/class/firebase/app-options#constructors-and-destructors).\n\nIf you want to use multiple Firebase projects in a single app, visit the\ndocumentation for [configuring multiple\nprojects](/docs/projects/multiprojects#use_multiple_projects_in_your_application).\n| **Note:** The Firebase configuration files contain unique, but non-secret identifiers for your project. To learn more about these config files, visit [Understand Firebase Projects](/docs/projects/learn-more#config-files-objects).\n\nOpen source resources for the Firebase C++ SDK\n\nFirebase supports open source development, and we encourage contributions and\nfeedback.\n\nFirebase SDKs\n\nThe open source C++ SDKs are available in our [GitHub\nrepository](https://github.com/firebase/firebase-cpp-sdk).\n\nNote the following about how we build the C++ SDKs for Firebase:\n\n- The C++ SDKs for Windows, Linux, and macOS are entirely open source and hosted in our GitHub repo.\n- The C++ SDKs for iOS, tvOS, and Android are built on top of the open source [iOS SDKs](https://github.com/firebase/firebase-ios-sdk) and [Android SDKs](https://github.com/firebase/firebase-android-sdk).\n\nQuickstart samples\n\nFirebase maintains a collection of quickstart samples for Firebase APIs on\nC++. Find these quickstarts in our public Firebase GitHub\n[quickstart repository](//github.com/firebase/quickstart-cpp/).\n\nEach quickstart includes an Xcode project for iOS, an Android Studio project,\nand a `CMakeLists.txt` file that can be used to generate a desktop project (if\nthe Firebase product itself supports\n[desktop targets](/docs/cpp/docs/cpp/setup#libraries-desktop))."]]