react-native-agora icon indicating copy to clipboard operation
react-native-agora copied to clipboard

NetworkQuality Seems to be stuck on Detecting state for uid(0)

Open valenciaed opened this issue 2 years ago • 1 comments

  • react-native: 0.67.4
  • react-native-agora: 3.7.0

After I upgraded react-native-agora from v3.6.2 to v3.7.0 the NetworkQuality event always reports Detecting(8) on both txQuality and rxQuality for uid(0). This was working fine in v3.6.2.

The screenshot below is a result of console.info('NetworkQuality', uid, txQuality, rxQuality) where uid, txQuality, rxQuality was taken from NetworkQualityWithUidCallback as the result of NetworkQuality event using v3.7.0: image

From what I understand based on the screenshot, uid(0) reports the current user's network quality while uid(1) is the broadcaster's NetworkQuality since I've set the broadcaster's uid to 1. Previously in v3.6.2, uid(0) is not stuck in Detecting(8) and is reporting correctly and independently from uid(1).

Below is the screenshot for v3.6.2 which shows that it is working even for uid(0): image

I am writing this issue to clarify if this is legit bug or an intentional update. If it is an intentional update what should I use to get the network quality of the current user? Thank you.

valenciaed avatar Jun 23 '22 12:06 valenciaed

Could you pls provide the SDK log file?

LichKing-2234 avatar Jun 28 '22 03:06 LichKing-2234