A Microsoft platform for building and publishing apps for Windows devices.
Hi @Xiaojie Ma ,
Thank you for persisting with the automated test and capturing this intermittent failure. The timestamps help narrow the investigation, but I don't see a trace attachment or download link in this thread, so I haven't been able to inspect the capture.
If Android was approximately two seconds ahead and these entries belong to the same attempt, its abort at 02:32:21 corresponds to about 02:32:19 on Windows. The ConnectionRequested callback logged at Windows 02:32:21 therefore appears to arrive about two seconds after Android gave up.
FromIdAsync runs inside ConnectionRequested. If that flow is unchanged, increasing its 6-second wait would not address the delay before the callback. Also, by Windows time Android started at about 02:31:59, which puts the callback roughly 22 seconds later. Could you confirm which event your 18-second figure is measured from?
The late ConnectionStatusChanged notification at 02:32:02 arrived shortly after the new attempt began, although you mentioned the previous connection had disconnected much earlier. Its application log time alone does not establish when that connection actually ended, so it needs correlation with the trace. It would also help to know when the previous WiFiDirectDevice was closed or released by the app.
Could you confirm where the existing capture was shared? Keep any full trace containing sensitive data in a restricted sharing channel. Here, please share short, redacted Windows and Android log excerpts covering the previous disconnect through the late callback, including handler entry/exit records if already available.
For both Windows callbacks, are the timestamps recorded immediately on entering the handler, or after dispatching or processing? That distinction, together with the capture, would help determine whether the delay occurs in Windows connection processing or in delivery and handling of the events by the application.