How to connect Firebase with MIT App Inventor 2 [ Firebase ]

preview_player
Показать описание
How to connect firebaes with MIT App Inventor 2
MIT App Inventor has played a big role in bringing programming to a wide range of audience, primarily high school students. One of the challenges that I have faced while teaching this to a young audience has been that once you progress beyond a certain set of features in App Inventor applications, you get to a tricky situation where you need to explain persistence of data.
App Inventor 2 has good support for local persistence of data via TinyDB and TinyWebDB. The former is a local persistence solution and the later is a managed database solution in the cloud. While TinyDB is good, it is time to look at Firebase, the hosted real-time database in the cloud from Google.
irebase Setup
The first step for us is to setup the Firebase database in the cloud. The instructions are given below:
You will see the welcome screen with two buttons as shown below:

Click on Create New Project button.
This will bring up the Create a project screen as shown below, where you will need to provide a project name. Note that you will need to provide a unique name for your project. Select a Country/region where you would like your database to be hosted. Click on Create Project.

Be patient. This will create a Firebase database under the Spark Plan. This plan is free and is good enough for our scenario. As an example of what the Spark plan gives us, take a look at this table.

To iterate again, we are only going to look at the Database feature of Firebase and not other services for now. Click on the Database link on the left. This will show up some details about your database as shown below:

Click on the Rules tab. You will notice that it has the following rules by default as shown below. Let’s not get too much into rules for now but it is sufficient to understand that why the magic text indicates is that to do database reads and writes, you will need to be authenticated. Firebase supports multiple authentication mechanisms, but we will keep it simple for now and not use any authentication. Note that what we are going to do is not good practice but it is ok for our tutorial here. What we are going to do is open up access to this Firebase database to allow anyone (everyone) to both read and write.

To do that, simply start editing the text to the one that is shown below:

Click on Publish. This will publish (associate) the rules with your database. It also indicates clearly (and which is good by the way) that we have defined our database to be accessed by the public (read and write). Boys and Girls, don’t try this at home (sorry … don’t try this in a live database).

That’s it. We have a Firebase database in the cloud, all ready for read and write. Now, all we need is to write this to our Android application.
Enter App Inventor 2 now for completing our Android application. thunkable firebase authentication firebase cloud functions
....................................................................................................................................

Follow Us On Social Media For More Updates -:

.................................................................................................................................... #TheCodingBus
#TCB #unitedstates #us
Рекомендации по теме
Комментарии
Автор

This is very clear for beginners to know about firebase and MIT interface
Thank you! It helped me out!

nayanadwaith
Автор

Thanks you first time i saw this video i got it but i forgot then i was thinking and your video helped me on a compation

Tihcasjournal
Автор

Can you show how mit app inventor access the data from firebase? I mean firebase data will display on mit app inventor.

leejiaqianstudent
Автор

value storing is of string type but i want to store numbers, how to do that ?

imvickykumar
Автор

Thank you for helping me in my project

aagrimsehgal-bbpsludhiana
Автор

Hi, I follow all of your steps exactly. Why the app crashes and stop immediately when I try to open?!

asoft
Автор

can we use it to send audio data? and recall it?

iputuagusrestuastikaputr
Автор

Can you help me? When i tried to build it and install, it crashes and does not open. Thanks.

thombenedictdana
Автор

Bro how to add and retrieve sub tags in normal tags plz reply

sudeepbattu
Автор

sir, can i send push notification from firebase then plz help me plz reply me thnks

r.s.pagore
Автор

Hi sir, 2 Questions here.

1. How to read data from firebase and display at the app?

2. How to find data in the data which display in the apps using short key or some function such as CTRL + F or a search bar?

kmhooibg
Автор

Hi please let us know how we can restrict a person from not using an app. How can I make sure only the person I want is using the app and not other person who has the app. this firebase authentication only stores who logged in but it cannot restrict a particular person from not using it. How to do that, please tell.

yashnikhare
Автор

I am getting fireBase error permission denied

drypastaprogramming
Автор

Gr8 video sir,
When I drag firebaseDB, it says that it may be unstable so is it safe to use firebaseDB if I am looking forward to use my app for a long time in future?

rameshsrivastavachandra
Автор

thanks for sharing! Where do i get the FirebaseToken? in your video is already filled... thanks again!

ivanrocha
Автор

ola companheiro, obrigado pelo video, por curiosidade, você tem algum video sobre login do facebook no firebase pro mit app inventor 2 ?

algrykcoisasaleatorias
Автор

Hi,
your tutorial is helpful, but is it possible to send push notifications too by completing this process.

bhagattv
Автор

please do a video on how to read those stored data

jeevanupadhyaya
Автор

i need to connect firebase with MIT app inventor under real time database and i have configured, where should we test it in the emulator, or in the phone by installing the app, even then it shows error i have done some mistake kindly help

drvkjayaraghavendrarao
Автор

bro please post new video as some changes have been made in firebase.And I have doubt that should I do something with project bucket and Firebase token because in other videos they're doing something like that.

shakthiviviyn