Open jeffgca opened 1 year ago
As a first step on this issue - we should deploy and test with versions of WAT etc and webnative 0.34, not the currently deployed version. No use in trying to fix a bug that's already fixed.
Andy fixed this issue in the 0.35 branch The issue was indeed that the connection was opened multiple times.
I've attempted a reproduction in https://github.com/fission-codes/aol-demo/tree/upgrade-webnative-0.35.0 to gather more information from a second app.
The issue was not reproducible on a couple of attempts linking between desktop browsers including:
There were however issues linking from Desktop Firefox to Chrome on iOS. The symptoms are a bit different. Using chrome://inspect
logging, the following is logged:
These messages are logged here: https://github.com/fission-codes/webnative/blob/3bd09cdd70d24d6df32cf9630d6565b9b2beff5b/src/components/auth/channel.ts#L53-L87
It seems like this should make more than just two attempts.
Safari iOS has a similar issue as Chrome on iOS.
Starting the linking process there while debugging in macOS Safari shows the following output:
As with Chrome on iOS, we are only making two attempts.
The Chrome on iOS and Safari iOS issues with retries described above are fixed in https://github.com/fission-codes/webnative/issues/446.
I've done some testing of device linking and it is uh reliably unreliable; in numerous tests with various browsers / OS, device linking stalls:
What happens:
When the browsers are in this state, I have seen it start working after refreshing browser A, but this is not reliable.
In a successful device linking session I see WS messages being sent from browser A in response to browser B, but this never happens on the first attempt to link.