When user give like in a image, user should not give 2nd like in the same image?

With out a demo block png… Example I can’t understand

ok tell me you are using airtable or firebase… so that i will make block.

I think airtable is better…
I just understand… That… I will store the like value to airtable… Then when I load every time I will recive the value… Then???

okay wait i’m making block on it…

One more thing is there i’ll be using… Dynamic list view ( costom list view somthing)

When Button1. Click:
    if  PostName is in list(userLiked):
       print("You have already liked it")
    else:
        append to list(userLiked) item(PostName)
        set heartColor=red

this can be pseudo code

2 Likes

Can the user give like in another image in the list view …??

First of all, it will be difficult to understand it but please try to understand.

Remember 1 thing that i have made block with respect to 10th user in database.
i’ll suggest one thing and that is to store liked info in firebase because sometime SetCell crashes the app. but for firebase you have to build same logic as i’m doing with airtable.

hope you understand, if this helps you mark it as solution.
hope you understand…

1 Like

You can make it in simple way also… Why you use all this dinamic components… And make it difficult to understand …

because i don’t want to create whole design and waste my time.

You can use simple components…

If you can send the aia then I can go live to understand it better

Remember this,
so i’ll suggest to create firebase data for liked text and create same logic for it…

Its simplest solution is use tiby db and store value in with tag
Tag must be specific it

One tip :

It may co tain first 15 words of your post etc along with username for more accurate results u can also add time of upload (if ur app is high level) then store values
Liked… Or not liked
Also store these valuws in your database
And now on screen intaialze or time of your posts show check whether the value in tiny db for a specific post is ‘not liked’ ( or empty in case when its not get liked previously and a new post ) … Or liked
When its ‘not liked’ and user ckicks for the fiest time then store values as i mentioned above with tages that it is liked
And when he clicked second time now change stored value from liked to unliked or not liked
Repeat the process and it will work

So @Latest_viral , so build block with same logic for firebase.

What if we have uninstalled app and then we be came back after some days?

adding to @nikzdreamer2001, and what if user clear data of app?

instead tinyDB use tinyDBweb, firebase or you may try asteroid DB by @yusufcihan

1 Like

I aslo said that store it in your database too

If something like this happens then u can get backup

In my case whenever app loaded data it also checks for every post what its value is in database if its liked or not liked

if liked then it show the blue like icon ( if u r using a blue/ any other color icon for showing liked posts)
And if its not liked then it will show the simple icon and here u can also uodate your tinydb data

Updated

i suggested this to check locally in app
in your case on every click app will get data from database which is not a good idea
Instead check it locally in app
suppose if connection is week and app is unable to get data from firebase or other database it will cause delays in app actions and furthermore it may crash the app in some cases

First of all, create a child in Firebase as follows:

The likedposts tag will store the URL of every posts that user has liked.

You can understand the rest things from the block itself.

Hope it helped you.