Web3ModalUnity icon indicating copy to clipboard operation
Web3ModalUnity copied to clipboard

Cannot switch to the wallet application when connecting wallet

Open TranTuanAnh10 opened this issue 2 years ago • 3 comments

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.

TranTuanAnh10 avatar Jun 14 '24 02:06 TranTuanAnh10

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?

skibitsky avatar Jun 14 '24 08:06 skibitsky

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.

TranTuanAnh10 avatar Jun 14 '24 10:06 TranTuanAnh10

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?

skibitsky avatar Jun 17 '24 10:06 skibitsky