How to implement inbox only to read data from firebase database

52
November 16, 2019, at 6:40 PM

I want to implement a inbox where a user only can read the text from other user. I designed my firebase database structure.

https://drive.google.com/open?id=1zv1dPWIiyhyDBur6TKbbKdi0YoHipjWK

Where I can insert name, email, imageuri, lastInsertedDate, where email is unique. But in that structure I don't have idea how can I insert into message. After inserting into database, at retrieving data, in each item recyclerview will be look like :

https://drive.google.com/open?id=1MSdGeqeXQD0JqhstLeYj9PlrE_dhlipW

When item will be clicked, the user will see the text like according last inserted date:

https://drive.google.com/open?id=1QryB2lb9mf_FuvY1si_laZeLaTsI2WTT

When other user will enter text into database, the database structure will be like first image. So, how can I implement these in my application? Please, help me with code.

READ ALSO
How to align element at the bottom of screen using CSS?

How to align element at the bottom of screen using CSS?

How do I align an element at the bottom of a window (independent of the screen size), BUT it remains in that position such that when the window height is reduced (when a user alters window size) it remains in that exact location and is out of view in the window...

71
controller does not receive data from ajax

controller does not receive data from ajax

well in my learning ofnet core with mvc template I have a challenge and it is to send an image and data of some herlpers to a cotrolator with ajax he tried several ways already but I always find the error that neither my object model is null and in the HttpContext

65
How to update the foreign key value of table 2 from the primary key of table 1

How to update the foreign key value of table 2 from the primary key of table 1

Currently, I have 2 tables which table 1 has the primary key of customer_id and table 2 has the foreign key of customer_idMy issue is, I tried to update the value of the foreign key from the value of primary key, but the value is always 0 for foreign...

64