2017년 7월 31일 월요일

Messenger doesnt work correct


Hi there I just completed my Messenger App. Normally it should work but there are 2 things which are not as i wanted to be.
1. When person A writes one message it sends it to person B... but it does continuing sending the message the whole time.
2. When person A sends a message to person B it will be shown at person B´s device but not on person A himself´s device.

Actually 3: why are there "clinches" this right here -> () before and after the text? (picture)

Might you maybe have a look through it? I would be thankful for it
sry for my bad english.

The AppInventor 2 data and 1 pic is here.




--
The examples here Tag in Database   do work.  

--
Really, thanks for your help Steve. But I do not understand what uve sent me before. Still i dont want to change my project because it is for my school and i want to leave it as good as i can like it is. But the screenshot helped me with one problem (the first one). I do still have problems with point 2 and 3 if u have time and the pleasure to help me with the other one´s it would be great but u ve already helped me so thanks for that.

--
Your aia file appears completely unrelated to your app or your problem. Please upload an image of the relevant blocks. This is the best way to get help.

--
Firebase does not update like a TinyDB,.  Your Clock1.Timer block is superfluous.  The continual firing of the Clock causes a repeating display of information unnecessarily and is the reason for #3.  With this code you make a List ...then you display the list and get the parentheses ( ) .  What blocks you have in the Clock would ordinarily go in the Firebase.GotValue   or  Firebase.DataChanged blocks if this were coded properly for a Firebase app in AI2..   

Why are you using both TinyDB and Firebase in the same Project?   You attempt to pass information between these two databases and your code is durcheinander gebracht. You can use the FirebaseDB for
all your information and data. When you combine the different databases in a single event handler you are exposing yourself probably to a timing issue.

You insist on using multiple screens. You do not have to use multiple screens. It creates complications. You could do the entire app with three or fewer vertical layouts that you turn Visible to true to show and false to hide.

Regarding #2 you might be able to do that but I don't see where you wrote the code. The idea behind most chat apps is that everyone see the entire chat. You will need some code in the DataChanged and or GotValue blocks with a conditional block to prevent your app from 'printing' a specific user's remarks... this could require quite complex logic.

You put a lot of hard work into this not realizing the issues involved in mixing databases. It is a shame. Sorry, I will not attempt to debug this mess Hakan. Since this is a chat app, you should keep FB and should not use TinyDB. Think about how you can use the Firebase to save the user log in information. You could save each user as a Tag in Firebase. Clean it up and post again and I will be glad to provide specific advice.

You might get lucky and someone else will attempt to unravel this..I expect it would take hours.

--

댓글 1개:

  1. If you want your ex-girlfriend or ex-boyfriend to come crawling back to you on their knees (even if they're dating somebody else now) you need to watch this video
    right away...

    (VIDEO) Text Your Ex Back?

    답글삭제