amonchakai / Hg10

Hg10 -- A XMPP Client for BlackBerry 10 (aiming Google Talk)
20 stars 11 forks source link

New messages do not update in the hub. #61

Open Gh10User opened 9 years ago

Gh10User commented 9 years ago

When I receive messages from contacts I currently do not have active conversations in the hub, I must open the application to retrieve them. And, also, the last message visible in the hub is not updated unless I have the application open.

amonchakai commented 9 years ago

Yes, currently the refresh of the hub only append when:

Keelan commented 9 years ago

Also having issues with the hub and XMPP. No conversations appear in the hub. I get a notification noise but no message in the hub or convo to click. Opening the app is this only way to read the message or see who the message is from.

amonchakai commented 9 years ago

For your issue, I would just try to reboot the phone.

If it does not work, try to reinstall the app (and check with 'account cleaner' on BBW that there are no remaining account).

Normally it should work

Ah! and if you are using XMPP, your contact must have a name! And not just the email address. If that is the case, you will need to give him a name using the edit contact feature. And set the "full name" field... Sorry, that a restriction I personally enforced for the hub...

Keelan commented 9 years ago

Hmm i have done all this.

I installed, reinstalled, deleted, rebooted phone, updated hub (top right corner down 5 times)

I edit the name on the contacts filled in all the details. It doesn't change still shows name@xmpp.server.com

amonchakai commented 9 years ago

humm...

just to make sure, the contact are added into the hub when you close the conversation. You need the contact to have the field "full name" with something in it. Then, you open the conversation with that contact and when you go back to the list of contact, that would be the moment when the hub is updated.

amonchakai commented 9 years ago

Ah sorry, do you tap on "set" in the edit contact dialog? If it keeps using the email address, the problem is there. I need to have the full name field NOT empty for this contact to be added into the hub.

Keelan commented 9 years ago

Ok i got this to work.

Full reinstall -> Opened App -> XMPP Setup -> Edit user -> Change Full Name from name@xmpp.server.com -> Press Set -> Reboot

It showed up but when i opened the message from the hub it was blank and wouldn't mark as read.

Deleted that one, then the next message came through worked. Seems to be ok now.

Is there reason you don't parse anything before the @ as a full name so this worked out of the box?

amonchakai commented 9 years ago

I don't think you really had to reboot. I do a lot of test with xmpp, and just editing the name was always sufficient. Anyway, glad it is solved!

And no, it is just for a stupid reason it is like this: I did that in the early stage of the app, when I was mainly looking at hangouts. And i saw that between my contacts there was some spam, people I blocked, and they all had in common the fact that the "full name "field was not defined.

So I thought it was a way to recognize the contacts I don't want, but that was stupid. Google hangouts always define the "full name" for your contacts, but when you are dealing with jabber/xmpp that is another story.

So I removed this restriction of requiring a full name set, but it is still there in the hub...

Keelan commented 9 years ago

@amonchakai

Ah i see that makes sense.

Another thing:

Get notification via hub, open chat in hub. Receive multiple messages whilst hub chat is open. backout to hub. receive another message from the same conversation. Get no notification. Until you re-open the app.

amonchakai commented 9 years ago

yes, so for this, it is due to the fact that I fire a notification only when the card is closed.

The thing, is if you just swipe to close the card. It is not closed immediately.... the OS wait several seconds before closing it, enabling to open the next card more quickly in case you would need to do it...

So for my app, during this period of time, the card is not closed -> no notification..

However, if you tap on the back button on top left, then I can force the card to close. And you won't have problem with the notification.

It is something I would need to work on...

Keelan commented 9 years ago

That still doesn't work, same behavior as if you swipe or press bottom back button.

If you have the chat open and you receive more than one message and press any 3 of the ways to go back to the hub (bottom left, top left and swipe) You do not receive a notification again until you open the chat up in the app.

You are aware of issues related though, which is good :D

amonchakai commented 9 years ago

humm strange...

Keelan commented 9 years ago

@amonchakai other than a few little hiccups here and there, great app. The only real xmpp client on BB10, hope to see more improvements. If i was you i would highly consider fixing the little bugs and maybe charge or have pro version. With multi account support and such i'd buy it. Threw you a coffee :) thanks

amonchakai commented 9 years ago

Many thanks

As for the bugs, I am planning to fix them. There is still plenty to be done for this app. I will do it at some point. It is just that some things are easier to solve than others.