Skip to content

[BUG] Not able to get User Diagnostics network_send_quality and network_receive_quality in android #1895

@codal-hkrishnani

Description

@codal-hkrishnani

Describe the bug
I wanted to get user facing diagnostics, network strength for local as well as remote user. But there's no option to get that details. Even though its mentioned here

Code Snippet
I get local user diagnostics but it's not updating real time and it doesn't triggered all the time

NetworkDiagnostics networkDiagnostics = diagnosticsCallFeature.getNetworkDiagnostics();

networkDiagnostics.addOnNetworkReceiveQualityChangedListener(args -> {
    DiagnosticQuality quality = args.getValue();
    Log.d("Diagnostics", "Receive Quality: " + quality.name());
    emitEvent("onDiagnosticEvent", createStringParams("network_receive_quality", quality.name()));
});

// 🔹 Send Quality
networkDiagnostics.addOnNetworkSendQualityChangedListener(args -> {
    DiagnosticQuality quality = args.getValue();
    Log.d("Diagnostics", "Send Quality: " + quality.name());
    emitEvent("onDiagnosticEvent", createStringParams("network_send_quality", quality.name()));
});

// Reconnection quality (poor/fair/good): 
networkDiagnostics.addOnNetworkReconnectionQualityChangedListener(args -> {
    DiagnosticQuality quality = args.getValue();
    Log.d("Diagnostics", "Reconnection quality: " + quality.name());
    emitEvent("onDiagnosticEvent", createStringParams("reconnection_quality", quality.name()));
});

}

Expected behavior
We should be able to get events trigged whenever network changes, Only reconnection_quality this event is triggered that not all the time

Screenshots

Image

Setup (please complete the following information):

  • com.azure.android:azure-communication-calling:2.13.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    customer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-triageWorkflow: This is a new issue that needs to be triaged to the appropriate team.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions