hi, i know blocks are not clean
but my problem is when i search someone, it works, but it says he is online even if he is not online
- normal
- on search
(sorry for these images)
hi, i know blocks are not clean
You are not showing all your block , so I am wondering how you determine one user is online or offline?
i cant show all blocks beacuse i have 8400+ blocks
and when the user open the app it will store value in majkerdashstatus at tag - his name and value online, when user close app then it will store as offline
my question is why players that are offline are in online list
How does your app know if a user just shuts off his phone?
Did you remove the offline user from the online list? I did not find it.
im not storing offline users on the online list (i think)
Sorry I still don't know your logic, how to inform others that one use is on or offline. How you aware other user is on line or off line.
Normally we use CloudDB.DataChanged event, but you did not use it.
MajkerDashStatus is a clouddb for example you are user Kevinkun
tag - Kevinkun
value - OFFLINE
When screen initialize
MajkerDashStatus store value
tag - tinydb get value tag - YOURNAME
value - ONLINE
When user close app
MajkerDashStatus store value
tag - tinydb get value tag - YOURNAME
value - OFFLINE
oh yes i forgot that blocks to add, but still the question is why players that are offline are in online list
ok, how other users know one user is online or left? keep pulling tag list?
I dont understand the question but I have also second clouddb where im also storing player names but with their scores (I know that's not good and I can do this with 1 clouddb ) but I have these blocks
You already show us these in previous post.
when did you call the GetTagList function?
on screen initialize
so you only call this function once. as I already asked, how do you know other user is leaving or online?
Other user just stored their status on server, but you did not listen to this change.
when the user become online or offline and you are in-game this will be not noticed
(I will add this in a second)
cool idea, but i think im figuring it out why offline people are in online list
Sorry i did not understand your code. Try to remove the unnecessary code (like how to show list in ListView), and only show the simplest code to others for debug.