Notifications in a chat app

  1. Safe ? In general, the only people who can see the messages are the ones who have the token in your app. If you are really worried about who can see what on the server, then you should use an encryption system for your messages.

2, See the cloudDB examples here:

1 Like


This is correct?

How do I encrypt these messages?

I tried this, but it now sends a notification to the user who sent the message and to the user who received the message.

Search the community for encryption or encoding, see if you find something that works for you.

1 Like

What about notifications? He still sends the notification to both parties even if he is the sender

I hope someone can tell me a solution

One solution could be:
In the DataChanged event check, if the last element in the list is identical with the last message, the user has written... if yes, don't send the notification

Taifun

1 Like

How do I do that?

Well, I guess in a textbox you entered the message... so get the last message from your list and compare it with that Textbox Text

Taifun

i use listview. So I can view all messages, so I cannot select a specific message

How does someone write a message? These are only prewritten messages someone can select from a listview? What about providing a screenshot of some relevant blocks so we know what you are doing?

Taifun
PS: sorry, I will not look into your aia...

Okay, here are some pictures


g)

This is your message
unknown
it is a textbox...

Taifun

But I cannot select a specific text from list view
When taking the text from list view. It displays all the text inside it

This is the aia file For app

chat.aia (134.3 KB)

You can take a look if you want to understand more about the problem I am facing

You get some data from the database, which is a list
And you can select the last item from that list...
If you do not know how to do this, then learn how to select the last item from a list...do the list tutorial. .

And you could compare that item (whjch is the last message) with the text from the textbox...

Taifun

Well, thank you, brother, for your solution, and I apologize for asking so many questions :white_heart::white_heart:

But I couldn't find a way to select the last item in the list

Use the select list item block together with the length of list block as index to get the last item

Taifun

1 Like

Thank you, brother

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