קל לארגן דפים בעזרת אוספים אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
במהלך פיתוח פרויקט C++ באמצעות Firebase, יכול להיות שתיתקלו במושגים לא מוכרים או ספציפיים ל-Firebase. בדף הזה אנחנו מנסים לענות על השאלות האלה או להפנות אתכם למקורות מידע נוספים.
אם יש לכם שאלות בנושא שלא מופיע בדף הזה, אתם מוזמנים להיכנס לאחת מהקהילות שלנו באינטרנט. אנחנו גם נעדכן את הדף הזה מעת לעת עם נושאים חדשים, אז כדאי לחזור לכאן ולבדוק אם הוספנו את הנושא שאתם רוצים ללמוד עליו.
תמיכה בספריית Firebase לפי פלטפורמה
בטבלה הבאה מפורטות הספריות של Firebase שמתאימות לפלטפורמות השונות. בשלב הזה, התמיכה במחשבים מיועדת למטרות פיתוח – היא מאפשרת לכם לבדוק תכונות במחשב הפיתוח בלי לפרוס אותן בטלפון או בטאבלט, אם כלי הפיתוח מאפשר זאת.
פלטפורמה
Android
iOS
tvOS
macOS (בטא)
Windows (בטא)
Linux (בטא)
A/B Testing
גרסה 8.3.0 ואילך
Analytics
גרסה 8.7.0 ואילך
App Distribution
גרסה 8.3.0 ואילך
Authentication
גרסה 8.3.0 ואילך
Cloud Firestore
גרסה 8.3.0 ואילך
Cloud Functions
גרסה 8.3.0 ואילך
Cloud Messaging
גרסה 8.3.0 ואילך
Cloud Storage
גרסה 8.3.0 ואילך
Crashlytics
גרסה 8.3.0 ואילך
Dynamic Links
Google Mobile Ads
Realtime Database
גרסה 8.3.0 ואילך
Remote Config
גרסה 8.3.0 ואילך
שירותי Google – קובצי הגדרה
כחלק מהוספת Firebase לפרויקט C++, צריך להוסיף קובץ הגדרות של Firebase.
כדי להשיק משחק C++ בפלטפורמה לנייד, צריך לפעול לפי ההוראות לפלטפורמות של Apple (iOS ואילך) או ל-Android כדי לכלול את קובץ ההגדרות המתאים של Firebase בפרויקט.
כדי לפתח למחשב, צריך ליצור גרסה למחשב של קובץ ההגדרה של Firebase לנייד:
אם הוספתם את קובץ Android google-services.json – כשמריצים את האפליקציה, מערכת Firebase מאתרת את הקובץ הזה לנייד, ואז יוצרת באופן אוטומטי קובץ תצורה של Firebase למחשב (google-services-desktop.json).
אם הוספתם את קובץ Apple GoogleService-Info.plist – לפני שמריצים את האפליקציה, צריך להמיר את הקובץ הזה לנייד לקובץ תצורה של Firebase למחשב. כדי להמיר את הקובץ, מריצים את הפקודה הבאה מאותה ספרייה שבה נמצא הקובץ GoogleService-Info.plist:
ב-Firebase יש אוסף של דוגמאות להפעלה מהירה של Firebase APIs ב-C++. אפשר למצוא את הדוגמאות האלה במאגר ההפעלה המהירה הציבורי של Firebase ב-GitHub.
כל מדריך להתחלה מהירה כולל פרויקט Xcode ל-iOS, פרויקט Android Studio וקובץ CMakeLists.txt שאפשר להשתמש בו כדי ליצור פרויקט למחשב (אם מוצר Firebase עצמו תומך ביעדים למחשב).
[[["התוכן קל להבנה","easyToUnderstand","thumb-up"],["התוכן עזר לי לפתור בעיה","solvedMyProblem","thumb-up"],["סיבה אחרת","otherUp","thumb-up"]],[["חסרים לי מידע או פרטים","missingTheInformationINeed","thumb-down"],["התוכן מורכב מדי או עם יותר מדי שלבים","tooComplicatedTooManySteps","thumb-down"],["התוכן לא עדכני","outOfDate","thumb-down"],["בעיה בתרגום","translationIssue","thumb-down"],["בעיה בדוגמאות/בקוד","samplesCodeIssue","thumb-down"],["סיבה אחרת","otherDown","thumb-down"]],["עדכון אחרון: 2025-08-16 (שעון 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))."]]