Firebase in App Inventor

Firebase is another google service that provides some important online services for mobile app developers. Therefore we can use firebase in appy builder and firebase in app inventor apps.
  • Database solutions
  • Authentication Solutions
  • Hosting Solutions
Are main three services from them. You have to have a google account before sign up for the firebase services. If you don't have a google account, then sign up for a google account.
Then go to the firebase website.

Press the button "GET STARTED FOR FREE" and signed in using your google account. Now you can see window like below.

Click on the "CREATE NEW PROJECT" button to create a new project for your app.
Enter a name for your project and select the country before creating the project.
From the next window, go to the Database. Then select Rule tab from there. Then change the values there as below.

{
"rules": {
".read": "auth != null",
".write": "auth != null"
}
}
to

{
"rules": {
".read": "auth != true",
".write": "auth != true"
}
}
Changing this null to true will allow anyone that has the firebase link to access your DB. However you can change this using the authentication service giving by firebase.
 After that click publish to publish changes. Then go to Data tab again. Finally you can see a url includes your project name. When you are passing data from your app to firebase DB you need to configure your app using this url.





No comments:

Post a Comment