You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/gdevelop5/all-features/firebase/quickstart.md
+19-11Lines changed: 19 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -7,39 +7,45 @@ To use Firebase, you have to connect it to a Firebase account. This page explain
7
7
8
8
### Step 1: Set Up Firebase
9
9
10
-
First, go to <https://console.firebase.google.com/>. You should have your projects. Let's create a new one: 
10
+
First, go to <https://console.firebase.google.com/>. You should see your projects. Let's create a new one, if you do not have one for your game yet:
11
11
12
-
Enter a name for your project. In this guide, we'll be calling it "Tutorial-GDevelop-5". 
Choose to enable Google Analytics or not (It is recommended that you enable it). In this example, we'll enable it as we want to showcase every feature, You can always change that later.
14
+
Enter a name for your project. In this guide, we'll be calling it "Tutorial-GDevelop-5".
Choose to enable Google Analytics or not. Enabling them will make Firebase collect a lot of data about your users to help you learn more about how they interact with your game. Note that all the data will be shared with Google as well. If you just want to know how many players play, how often, and fully preserve annonimity, respect of user's private data & GDPR compliance, you can also try GDevelop Analytics instead. In this example, we'll enable it as we want to showcase every feature. If you are unsure, you can always enable it later.
### Step 2: Register an app for your GDevelop game
27
31
28
-
To register your game, you need to create a new "web app" in Firebase (even if your game is going to be exported to mobile/PC). To do so, click on the third button (the one with the angle brackets) to add a "web app" (see the following screenshot)
32
+
To register your game, you need to create a new "Web App" in Firebase. Regardless of the platform GDevelop games are exported to, GDevelop will only work as a Web App. To do so, click on the third button (the one with the angle brackets) to add a "web app":
Type any name you want again and untick "Set-Up Firebase Hosting".
33
37
34
38
!!! note
35
39
36
-
At the time of writing, there is no support for Firebase Hosting but it may be added to GDevelop later.
40
+
GDevelop has no built-in integration to publish to Firebase Hosting. Try our integrated, in-house [gd.games](https://gd.games) hosting platform instead!
37
41
38
-
Firebase will now show you some code known as the firebase SDK that you would use if you were coding a website (we won't need everything).
42
+
Firebase will now show you code to initialize the Firebase integration:
39
43
40
44

41
45
42
-
You only need the Firebase configuration part. Copy-paste the part between the {} including the {}. For example, in this screenshot what we need to copy is: ```
46
+
You only need the Firebase configuration. Copy-paste the part between the `{}`, including the `{}`, and excluding the semi-colon. For example, in this screenshot what we need to copy is:
@@ -54,7 +60,7 @@ You only need the Firebase configuration part. Copy-paste the part between the {
54
60
55
61
```
56
62
57
-
Now open the GDevelop project you want to integrate Firebase to, and go to the project properties. In the "Firebase Configuration" field, paste the configuration you copied. However, the format used by GDevelop is stricter than the code provided by Firebase. You need to wrap all the key names with quotes. The example would become:
63
+
Now open the GDevelop project you want to integrate Firebase to, and go to the project properties. In the "Firebase Configuration" field, paste the configuration you copied. However, GDevelop only accepts the configuration in JSON format. You will need to wrap all the key names with quotes. Make sure you do not include a comma after the last key-value pair. The example would become:
58
64
59
65
```
60
66
@@ -69,6 +75,8 @@ Now open the GDevelop project you want to integrate Firebase to, and go to the p
0 commit comments