How to get the real time notification in android? For example typing notification.

Pawan Yadav 0 Reputation points
2023-12-18T10:35:08.31+00:00

I am using following SDK for video call and chat in android project.

// video call

implementation("com.azure.android:azure-communication-calling:2.6.0-beta.5")

// acs chat

implementation 'com.azure.android:azure-communication-common:1.1.1'

implementation( 'com.azure.android:azure-communication-chat:2.0.0') 

implementation 'org.slf4j:slf4j-log4j12:1.7.29'

Using both 'com.azure.android:azure-communication-calling:2.6.0-beta.5' and 'implementation( 'com.azure.android:azure-communication-chat:2.0.0') ' how to get real time notification in android project?

Azure Communication Services
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Bryan Trach 17,837 Reputation points Microsoft Employee Moderator
    2023-12-19T01:37:52.68+00:00

    @Pawan Yadav The Azure Communication Calling SDK does not support real-time notifications for now. On the other hand, the Azure Communication Chat SDK supports real-time notifications for chat events such as typing notifications, message received notifications, and more.

    To receive real-time notifications for chat events, you can subscribe to the events using the ChatThreadClient object and handle the events in the callback functions. Here is an example of how to subscribe to typing notifications:

    chatThreadClient.onTypingStatusChanged(new OnTypingStatusChangedListener() {
        @Override
        public void onTypingStatusChanged(ChatThreadClient chatThreadClient, TypingStatus typingStatus) {
            // Handle typing status change
        }
    });
    

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.