Sign in using DevConnect ID

Forgot password?

Trouble logging in?

Submit a ticket for Registration Support.

I have an SSO ID

?
sign in

Don't have a DevConnect or SSO ID ?

Create a DevConnect account or join the program.

register now
^
Forum Index » Avaya Breeze™ Client SDK - General » how to get user typing info in the message   XML
 
Author Message
test_123



Joined: 06/11/2017 22:41:21
Messages: 17
Offline

Hi All

Currently I am developing custom Equinox application for Android and Windows.
I have tried to use ComposingParticipantsListener function but there is no report behind active user in conversation is typing

how can I get the user info is typing it

Regards,

Andi

This message was edited 1 time. Last update was at 14/11/2017 21:52:10

Rumata



Joined: 20/12/2016 06:06:23
Messages: 109
Offline

Hi Andy,
thank you for your question.

You can use following API:
MessageListener::onMessageBodyChanged(Message message, java.lang.String body);
test_123



Joined: 06/11/2017 22:41:21
Messages: 17
Offline

Hi Rumata,

Thanks for your respons

I already implemented that function, but I need to know how to get info if other user type the message. So I can see "User is typing" in the Instant Messaging Session.

Need your advice.

Regards,
Andi

This message was edited 1 time. Last update was at 15/11/2017 23:26:10

Rumata



Joined: 20/12/2016 06:06:23
Messages: 109
Offline

OK, I see. In that case the ComposingParticipantsListener::onConversationComposingParticipantsChanged have to work.

Is capability Conversation::getIsTypingCapability() allowed?

test_123



Joined: 06/11/2017 22:41:21
Messages: 17
Offline

Rumata wrote:OK, I see. In that case the ComposingParticipantsListener::onConversationComposingParticipantsChanged have to work.

Is capability Conversation::getIsTypingCapability() allowed?



Hi Rumata,

I already tried that method, but the capability is not allowed(See attachment for detail log).


Regards,

Andi
[Thumb - usertyping.jpeg]
 Filename usertyping.jpeg [Disk] Download
 Description No description given
 Filesize 79 Kbytes
 Downloaded:  41 time(s)

Rumata



Joined: 20/12/2016 06:06:23
Messages: 109
Offline

On screenshot I can see getUpdateBodyCapability(). What's about getIsTypingCapability()?

Please collect and attach client logs (in Debug mode).

To enable logging in Windows SampleApp please make following changes in SDKManager.cs:

1) Set debug level
[Line 119] Client.LogLevel = Avaya.ClientServices.LogLevel.Debug;
2) Set log callback (uncomment line)
[Line 120] Client.LogMessage += LogMessage;
3) Enable writing to console with timestamps (uncomment line)
[Line 334] Console.WriteLine("\n" + DateTime.Now.ToString(("MM-dd-yyyy hh:mm:ss")) + ": " + Level + " : " + Tag + " : " + Message);
4) Disable writing to console without timestamps (comment line)
[Line 335] //Console.WriteLine("\n"+ Level + " : " + Tag + " : " + Message);
5) Rebuild SampleApp

Then we can collect logs:
1) run following command in shell:
CommunicationSampleApp.exe >SampleApp.log
2) Reproduce issue then close SampleApp
3) Send SampleApp.log file to our team
test_123



Joined: 06/11/2017 22:41:21
Messages: 17
Offline

Hi Rumata,

My issue is for android development, for windows was okay. How to implement the user typing from other user? I can't found the getIsTypingCapability() function for android SDK.


Regards,

Andi
Rumata



Joined: 20/12/2016 06:06:23
Messages: 109
Offline

Hi Andy,
Sorry, getIsTypingCapability() is new method and it is not available in 3.3.
I'm going to try to reproduce your issue and get back to you.
test_123



Joined: 06/11/2017 22:41:21
Messages: 17
Offline

Hi Rumata,

Thanks for your reply. Ok, I'm waiting for that method for next release.


Regards,

Andi
Rumata



Joined: 20/12/2016 06:06:23
Messages: 109
Offline

Hi Andi,

What version of AMM server do you use? I've found that typing notifications don't work against AMM server version - 3.1.0.1.148, but work against 3.0.0.0.1.175.

This message was edited 1 time. Last update was at 07/12/2017 10:22:22

test_123



Joined: 06/11/2017 22:41:21
Messages: 17
Offline

Hi Rumata

I am using AMM server version 3.2, so does it exist in server version 3.2?

Thank you
Andi
Rumata



Joined: 20/12/2016 06:06:23
Messages: 109
Offline

AMM 3.2 have to work. It seems I've found root cause.

If you can see following messages in log:
CAMMWebsocketConnection[CONNECTING]::OnDiscoveryTimeout(): Closing websocket connection.
...
CAMMMessagingProvider[AMMMessagingProviderStateMachine::RUNNING]::SubscribeForChatStateNotifications(): Failed: No server resource found

it means the WebSocket connection to AMM wasn't established. To fix it, you need to add netty lib to build process of your project.

Client SDK is dependent on Netty library which is not distributed as part of AvayaClientServices.aar. Even if your app doesn't require Netty, make sure you add it as a dependency in your build.gradle to avoid runtime issues:

compile 'io.netty:netty-all:4.1.0.Final'

test_123



Joined: 06/11/2017 22:41:21
Messages: 17
Offline

Hi Rumata,

I was tried to add io.netty:netty-all:4.1.0.Final but still can't see "user typing" from other users. Beside that other feature likes video collaboration got problem, can't see desktop sharing from other user. Lastime this feature was okay if I used netty-all:4.1.0.Beta3.
Rumata



Joined: 20/12/2016 06:06:23
Messages: 109
Offline

Hi,

I tested with netty-all:4.1.0.Final last week. IsTyping worked.
It attachments there is my implemetation based on Android SampleApp (new check box has been added to conversation frarment).

Please take it and verify Is the added check box checked when remote user is typing?
 Filename AvayaClientSDK_Android-3.2.0.2-build1-IsTypingSample.zip [Disk] Download
 Description No description given
 Filesize 181 Kbytes
 Downloaded:  18 time(s)

test_123



Joined: 06/11/2017 22:41:21
Messages: 17
Offline

Hi Rumata,

Thanks for your reply. i try your code and then yeeaay its works ..
Thanks you Rumata

Regards,

Andi
 
 
Go to: