This tutorial will cover how to add your:
• Project ID
• Web API
• App ID
• Firebase storage bucket
to your Sketchware project.
Firebase will allow you to add authentication, database and online storage capabilities to your app.
You will need to start by creating a Firebase Project (Note that this is not the same as a Sketchware project). Check out this article for a detailed guide on how to create a firebase.
On your Sketchware project screen, navigate to the top right corner of your screen. Click the menu item(the three dots) as shown below.
The configuration menu will be opened. Click 'Library'.
In the Library Manager section, click the Firebase option as shown below.
On the Firebase Project settings, add the '
Project ID', '
App ID' and the '
API Key'. If you are not sure where to get these, then check out
this article.
If you already have another Sketchware app which is using firebase, you can import the firebase details for that project by clicking 'Import from the other project's.
When you've set up your firebase details, click 'Next'.
On the next screen, add your storage bucket URL for your firebase project. When you are done, click 'Next'
Confirm that you have entered the correct credentials. If you are satisfied, click 'Save'.
A dialog box with a Warning will appear. Simply click 'OK'.
You will note that the 'Firebase' and the 'App compat and design' options have now been switched on. You can now go back to your project screen and focus on building your app.
The Firebase section of your App's Library should look similar to the one below.
Conclusion
Firebase enables you to authenticate your users, manage your database and store data online. It is therefore important to keep your firebase credentials private and to use strong rules to secure your data.
I hope you found this very helpful
Comments