You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 10, 2026. It is now read-only.
After I use the mobile device to scan the QR code, it only closes the modal but does not execute the OnAfterConnect function
Expected behavior
after scan QR Code, the WalletConnect.Instance.ActiveSessionChanged function will be executed
note*: i unchecked ResumeSessionOnInit boolean
Screenshots
My Code
private void Start()
{
//Application.targetFrameRate = Screen.currentResolution.refreshRate;
// When WalletConnectModal is ready, enable buttons and subscribe to other events.
// WalletConnectModal.SignClient can be null if WalletConnectModal is not ready.
WalletConnectModal.Ready += (sender, args) =>
{
//// SessionResumed is true if Modal resumed session from storage
if (args.SessionResumed)
{
OnAfterConnect();
Debug.Log(1);
}
else
{
OnAfterDisconnect();
Debug.Log(2);
}
// Invoked after wallet connected
WalletConnect.Instance.ActiveSessionChanged += (_, @struct) =>
{
if (string.IsNullOrEmpty(@struct.Topic))
return;
Debug.Log($"[WalletConnectModalSample] Session connected. Topic: {@struct.Topic}");
OnAfterConnect();
Debug.Log(3);
};
// Invoked after wallet disconnected
WalletConnect.Instance.SessionDisconnected += (_, _) =>
{
After I use the mobile device to scan the QR code, it only closes the modal but does not execute the
OnAfterConnectfunctionExpected behavior
after scan QR Code, the
WalletConnect.Instance.ActiveSessionChangedfunction will be executednote*: i unchecked
ResumeSessionOnInitbooleanScreenshots

My Code
Environment