Hi all, I’ve been having a major issue with the Android App → Unity SDK QR scan functionality.
So, I imported MetaMask SDK into a project about two months ago. It worked perfectly, I could click connect, scan a QR code, a popup would appear on my phone, I’d approve the connection and a waterfall of successful console logs would appear in Unity. However as time passed, it would take longer and longer for the confirmation popup to appear on my phone, sometimes not ever showing up after minutes of sitting there waiting. But this would be inconsistent, I would sometimes scan the code and the confirmation popup would instantly appear. The behaviour has gotten worse and worse and I’m essentially entirely unable to connect my phone to Unity now.
I decided I would disable extraneous gameobjects on my scene and slowly re-enable them to isolate the issue. Disabling all extraneous gameobjects did not help. I decided I would go back to the demo scene that came with Unity and see what I am doing differently from that scene, but I had the same issue on that scene. I even started a brand new project and followed the instructions at [meta-mask-docs-url]/wallet/how-to/use-sdk/gaming/unity from start to finish and even with that project I am still not able to connect. My phone says Connecting to MetaMask… and the most recent Unity console log is MetaMask: Clients waiting to join.
I don’t understand what could possibly be causing the severity of this issue to be a function of time. And I don’t know how to resolve it. Does anyone have any ideas?