incoming notification-user typing - WeOnlyDo Discussion board

incoming notification-user typing (wodXMPP)

by Sapna, Monday, June 15, 2009, 15:03 (5421 days ago)

hi
when users type something in the gtalk chat window the incoming notification does not arise. is there a solution to that? also is there a way to send a message saying that the user has stopped typing?

thanks,
sapna

Re: incoming notification-user typing

by woddrazen, Monday, June 15, 2009, 16:01 (5421 days ago) @ Sapna

Sepna,


Did you check IncomingNotification Event maybe?

such notification should be received there.

More help for IncomingNotification Event you can find here:
http://www.weonlydo.com/XMPP/Help/WODXMPPLib~wodXMPP~IncomingNotification_EV.html

about sending notification you should use Notify Method. Did you check that mayve?


Drazen

Re: incoming notification-user typing

by Sapna, Monday, June 15, 2009, 16:11 (5421 days ago) @ woddrazen

no i meant when a user stops typing. that event is not handled. it pops up a message box if i put any other value other than 1 which is the only notify id that is there. 1 is for user typing. there is nothign for user stopped typing. which means that if i type a letter and delete it all the window will still say user typing. is there any way to add more notify id's to the ContactNotifyEnum?

Re: incoming notification-user typing

by Sapna, Wednesday, June 17, 2009, 14:20 (5420 days ago) @ Sapna

hi
can anyone help me with this. would be of great help.
Thanks,
sapna

Re: incoming notification-user typing

by woddrazen, Wednesday, June 17, 2009, 15:49 (5419 days ago) @ Sapna

Saphna,


For some reason we miss your email. Sorry about that.

Did you check Data argument in IncomingNotification Event?

Data argument should return True when user start typing and False when it stops.

Can you check that and let us know how it goes?


Drazen

Re: incoming notification-user typing

by sapna, Monday, July 06, 2009, 08:11 (5401 days ago) @ woddrazen

hi..

how do i use the const VARIANT &data to help me return TRUE or FALSE?

Thanks,
sapna

Re: incoming notification-user typing

by wodDamir, Monday, July 06, 2009, 08:40 (5401 days ago) @ sapna

Hi Sapna,

You can try something like this:

[code]if(Data.vt == VT_BOOL)
{
if(Data.boolVal)
{
//Do Something
}
}[/code]

Can you please try that?

Regards,
Damba

Re: incoming notification-user typing

by sapna, Monday, July 06, 2009, 09:20 (5401 days ago) @ wodDamir

hi..

i am not getting the xmpp_incomingnotification event in the event sink. can you please check on that. i am testing it with a gmail client

thanks,
sapna

Re: incoming notification-user typing

by woddrazen, Monday, July 06, 2009, 10:04 (5401 days ago) @ sapna

Sapna,


Are you sure?

I just tried our MFC VC sample and IncomingNotification Event is there and it works without any issue.


Drazen

Re: incoming notification-user typing

by sapna, Monday, July 06, 2009, 10:52 (5401 days ago) @ woddrazen

yes i'm sure. i'm not getting it. i have also said m_xmpp.Notify in my client when i am typing a message. it is not reflecting on the gmail chat client.

Re: incoming notification-user typing

by sapna, Monday, July 06, 2009, 15:52 (5400 days ago) @ sapna

i am using version 1.3.4.

Re: incoming notification-user typing

by wodDamir, Monday, July 06, 2009, 16:50 (5400 days ago) @ sapna

Sapna,

I believe this is duplicated. We have forwarded this to our programmers to check.

We will inform you as soon as we know more on this issue.

Regards,
Damba

Re: incoming notification-user typing

by wodSupport, Thursday, July 09, 2009, 02:00 (5398 days ago) @ wodDamir

This should be now fixed, XEP0085 is implemented and chatstates work with gmail.

Regards,
Kreso

Re: incoming notification-user typing

by sapna, Thursday, July 09, 2009, 09:32 (5398 days ago) @ wodSupport

hi
is this a new version that you have uploaded which i have to use now for those chat states to work?

Re: incoming notification-user typing

by woddrazen, Thursday, July 09, 2009, 09:53 (5398 days ago) @ sapna

Sapna,


You should download latest version and try it again.


Drazen

Re: incoming notification-user typing

by sapna, Wednesday, July 15, 2009, 17:10 (5391 days ago) @ woddrazen

hi..

the incoming notification is working partially. when i type a letter it will send the notification but immediately it sends a stopped typing notification too. so if i want to display user A is typing a message it will go off immediately because the const & variant details in incoming notification is FALSE

Re: incoming notification-user typing

by wodDamir, Wednesday, July 15, 2009, 17:44 (5391 days ago) @ sapna

Sapna,

It's normal that gmail sends two notifications. One is composing , the other is sent when you stop typing ( paused ).

However, usually the paused one will arrive when user doesn't write anything for 1-2 seconds.

Regards,
Damba

Re: incoming notification-user typing

by sapna, Thursday, July 16, 2009, 09:31 (5391 days ago) @ wodDamir

Sapna,

It's normal that gmail sends two notifications. One is composing , the other is sent when you stop typing ( paused ).

However, usually the paused one will arrive when user doesn't write anything for 1-2 seconds.

Regards,
Damba

i'm not using gmail. i'm using 2 jabber clients that i have developed. after the paused message comes in no more notifications come in. i don't get any more notifications after that

Re: incoming notification-user typing

by wodDamir, Thursday, July 16, 2009, 10:03 (5391 days ago) @ sapna

Sapna,

Do you send out Notifications at all?

The component won't do this for you automatically. You need to use Notify method when you start typing, as well as when you want to send send paused notification.

I tried on our wippien.com server, and this also works like a charm.

Regards,
Damba