Need help upgrading the cloud DB chat app

I made the cloud DB chat app as in the MIT App Inventor tutorials and I was successful , but this app is just too basic. I need options to -

  1. Delete a message when I long tap it.
  2. create different contacts and groups for specific people.
  3. want a notification on my device when a new message is received.
  4. share media files like photos, videos, documents, etc.
    I would be really grateful if my problem gets solved.
    Thanks a lot

It could be that using Firebase: realtime database / firestore / storage, may be more suitable for your requirements?

2 Likes

Regarding #1 , Programming Your App to Make Decisions might help. This ability depends on how you display your Chat (in a Label or using a ListView) . If you use a ListView use the AfterPicking event but it won't be a long tap. If you put your chat in Buttons, then you can use a long tap because they have that capability.

Regarding #2 (How do you create separate chat rooms? - #2 by SteveJG)

Regarding #3 you can use the Get Block to fill in a Label or to use a sound (use a Sound component) whenever the DataEvent changes.

Regarding #4 You can share images and text

Regarding all your concerns, you could search the community for 'chat cloudDB' and discover many discussions that have addressed similar issues. Also review CloudDB.

None of these issues are difficult if you learn to code rather than copy code. :cry: What have you tried?

3 Likes

Thanks a lot @SteveJG .

Well I am quite new to the app inventor. Its not even a month I have started using it.

One more question, how do I put my chat in buttons ?

With a lot of difficulty :cry: Here is an unfinished example:


You might find these Blocks useful. The code allows 'deleting' a post using a longclick because a Button has the appropriate event handler. It is easier to use a ListView to 'delete' a post. This code is awkward; you may be able to modify it to your purposes.

Here are some resources to help you learn to use the AI2 tools. A very good way to learn App Inventor is to read the free Inventor's Manual here in the AI2 free online eBook http://www.appinventor.org/book2 ... the links are at the bottom of the Web page. The book 'teaches' users how to program with AI2 blocks.

There is a free programming course here http://www.appinventor.org/content/CourseInABox/Intro and the aia files for the projects in the book are here: http://www.appinventor.org/bookFiles 1

How to do a lot of basic things with App Inventor are described here: http://www.appinventor.org/content/howDoYou/eventHandling 1 .

Also look here App inventor español. Offline. Tutorial. Ejemplos. Instalación. Códigos. Juegos. Curso gratis de App inventor. and here Tutorial Index | imagnity for more tutorials

Learn about components Component Reference
and visit the Library The MIT App Inventor Library: Documentation & Support Help>Library on the MENU

Thanks a lot @SteveJG , will try my best to learn.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.