Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot switch to the wallet application when connecting wallet #7

Open
TranTuanAnh10 opened this issue Jun 14, 2024 · 3 comments
Open

Comments

@TranTuanAnh10
Copy link

I used Web3Model on Unity 2022.3.16f1 and built an Android version, testing it on Android 14. After I clicked the Metamask icon on the model, it display:

image

I tried it with Android 13 and it still worked.

I used logcat in Android Studio to check the application's log, and after I clicked the Metamask icon, about a minute later, the log showed:

Exception: Websocket closed with code Undefined
at WalletConnectSharp.Network.JsonRpcProvider.Request[T,TR] (WalletConnectSharp.Network.IRequestArguments`1[T] requestArgs, System.Object context) [0x00000] in <00000000000000000000000000000000>:0 
at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <00000000000000000000000000000000>:0 
at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <00000000000000000000000000000000>:0 
at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run () [0x00000] in <00000000000000000000000000000000>:0 
at System.Threading.Tasks.AwaitTaskContinuation.RunCallback (System.Threading.ContextCallback callback, System.Object state, System.Threading.Task

Please check it and let me know what I should do. Thank you.

@skibitsky
Copy link
Member

Hello,

  1. Do you have IL2CPP code stripping level set to 'Minimal'?
  2. In the Unity Editor, if you select WalletConnect option on the first screen, can you see the QR code?
  3. Can you access https://walletconnect.com/ in your browser without VPN/Proxy in your network?

@TranTuanAnh10
Copy link
Author

Thank you for check it
I just check and there are result
0. It's IL2CPP and Minimal
image
image

  1. Yes
    image

  2. Yes

In Build Settings, I choosen Target Architecture is ARMv7 and ARM64.
This build can run in 1 Android device, but in another Android 14 still happen.

@skibitsky
Copy link
Member

Do I understand correctly: the app redirects to the MetaMask app on Android 13 but NOT on Android 14? Is the MetaMask version the same on both phones? Can you share your .apk file please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants