New message notification

Hi, All:

Is it possible to have some sort of in-app notification or even just a static field on a profile when a user has unread messages, comments, likes, ect…

Thanks!

1 Like

Just bumping in case anyone has a good solution.

Thanks again everyone!

Hi Bobby, you can check the default chat app in Adalo it has that feature.

Hi, @mod323

Can you point it out for me, I dont see anything.

Also, I know how to send push notifications. What i’m talking about is more like in app notification. Like you have 1 unread message or 1 new like on this comment ect.

Hi Bobby,

Here is a link that you can clone:

In the home screen in the messages list you will see the “new” icon that is visible when there is an unread message. You can apply the same logic elsewhere in the app. Hope this helps.

Awesome, I will check it out, thank you!

@mod323

Any way you know of to automatically delete older records in the “Read Status” collection?

This can quickly build up thousands of records.

Hi Bobby, you’re right. I’m not sure why it was set up this way.

I have deleted the Read Status collection and created two user relationships with the conversation collection called “last read by” and “last sent by”.

Last read by gets updated when the user clicks on (opens) the conversation only if they weren’t the same user in the “last sent by” field.

When a user sends a message both “last sent by” and “last read by” gets updated with the user that sent the message.

Lastly, the “new message” icon will only be visible if both, the 'last ready by" and “last sent by” fields are not equal to the logged in user.

I have updated the app I sent before so you can check/test it. Let me know if it works.

Thanks!

I’ll give it a whirl.

So,

The issue that I’m having now is that with this current setup, It seems that the “new” button appears on ALL conversations if only one requires it.

Hi Bobby :wave:

Just in case. This thread will also help you!

Thank you

Thank you, I will check it out!

1 Like

Good day. Had the same problem as Bobby, so your recommendation will be useful for me too, thanks a lot. In general, in my life I am engaged in the creation of business cards to order. I do it in different applications, but the coolest thing is business card maker, because it has the simplest interface and the most stylish product at the end. Use it if it’s helpful :slight_smile:

2 Likes

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