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

Unity : WebGLIsMobile assembly:<unknown assembly> #141

Open
OmarVector opened this issue Jun 7, 2023 · 8 comments
Open

Unity : WebGLIsMobile assembly:<unknown assembly> #141

OmarVector opened this issue Jun 7, 2023 · 8 comments
Assignees
Labels

Comments

@OmarVector
Copy link

I've updated SDK to latest version, and I got this issue while targeting Webgl

How to produce it?

Just use the latest SDK version and the sample scene. and press connect, the following errors show up in the Console.

MetaMask: Opening transport for connection has failed
UnityEngine.Logger:LogError (string,object)
MetaMask.Logging.MetaMaskUnityLogger:LogError (object) (at Assets/ThirdParty/MetaMask/Scripts/Logging/MetaMaskUnityLogger.cs:62)
MetaMask.Logging.MetaMaskDebug:LogError (object) (at Assets/ThirdParty/MetaMask/Runtime/Logging/MetaMaskDebug.cs:41)
MetaMask.MetaMaskWallet:Connect () (at Assets/ThirdParty/MetaMask/Runtime/MetaMaskWallet.cs:814)
MetaMask.Unity.Samples.MetaMaskDemo:Connect () (at Assets/ThirdParty/MetaMask/Samples/Main/Scripts/MetaMaskDemo.cs:113)
UnityEngine.EventSystems.EventSystem:Update () (at Library/PackageCache/[email protected]/Runtime/EventSystem/EventSystem.cs:501)
EntryPointNotFoundException: WebGLIsMobile assembly:<unknown assembly> type:<unknown type> member:(null)
MetaMask.Transports.Unity.MetaMaskUnityScriptableObjectTransport.get_IsMobile () (at Assets/ThirdParty/MetaMask/Scripts/Transports/Unity/MetaMaskUnityScriptableObjectTransport.cs:58)
MetaMask.Transports.Unity.UI.MetaMaskUnityUITransport.get_UseDeeplink () (at Assets/ThirdParty/MetaMask/Scripts/Transports/Unity/UGUI/MetaMaskUnityUITransport.cs:88)
MetaMask.Transports.Unity.UI.MetaMaskUnityUITransport.IsDeeplinkAvailable () (at Assets/ThirdParty/MetaMask/Scripts/Transports/Unity/UGUI/MetaMaskUnityUITransport.cs:204)
MetaMask.Transports.Unity.UI.MetaMaskUnityUIQRImage.ShowQR (System.String url) (at Assets/ThirdParty/MetaMask/Scripts/Transports/Unity/UGUI/MetaMaskUnityUIQRImage.cs:110)
MetaMask.Transports.Unity.UI.MetaMaskUnityUIQRImage.OnMetaMaskConnectRequest (System.String url) (at Assets/ThirdParty/MetaMask/Scripts/Transports/Unity/UGUI/MetaMaskUnityUIQRImage.cs:131)
MetaMask.Transports.Unity.MetaMaskUnityTransportBroadcaster.OnMetaMaskConnectRequest (System.String url) (at Assets/ThirdParty/MetaMask/Scripts/Transports/Unity/MetaMaskUnityTransportBroadcaster.cs:111)
MetaMask.Transports.Unity.UI.MetaMaskUnityUITransport.Connect (System.String url) (at Assets/ThirdParty/MetaMask/Scripts/Transports/Unity/UGUI/MetaMaskUnityUITransport.cs:121)
MetaMask.MetaMaskWallet.Connect () (at Assets/ThirdParty/MetaMask/Runtime/MetaMaskWallet.cs:810)
UnityEngine.Logger:LogException(Exception)
MetaMask.Logging.MetaMaskUnityLogger:LogException(Exception) (at Assets/ThirdParty/MetaMask/Scripts/Logging/MetaMaskUnityLogger.cs:69)
MetaMask.Logging.MetaMaskDebug:LogException(Exception) (at Assets/ThirdParty/MetaMask/Runtime/Logging/MetaMaskDebug.cs:50)
MetaMask.MetaMaskWallet:Connect() (at Assets/ThirdParty/MetaMask/Runtime/MetaMaskWallet.cs:815)
MetaMask.Unity.Samples.MetaMaskDemo:Connect() (at Assets/ThirdParty/MetaMask/Samples/Main/Scripts/MetaMaskDemo.cs:113)
UnityEngine.EventSystems.EventSystem:Update() (at Library/PackageCache/[email protected]/Runtime/EventSystem/EventSystem.cs:501)
@ZombieBP
Copy link

ZombieBP commented Jun 23, 2023

@OmarVector Im getting this error too. were you able to figure it out?

@OmarVector
Copy link
Author

OmarVector commented Jun 27, 2023

@ZombieBP since our game is direct on webgl desktop and not for mobile, I forced return false instead of calling external method WebGLIsMobile ()

I hope they fix it anyway

@GunLengend
Copy link

Same issue, return false instead of return WebGLIsMobile will temporary fix the issue.

@ecp4224
Copy link
Collaborator

ecp4224 commented Jul 5, 2023

Does this occur when you build or when you run it in the editor?

@OmarVector
Copy link
Author

OmarVector commented Jul 6, 2023

@ecp4224 > Does this occur when you build or when you run it in the editor?

As far as I do remember , it happened on both , but 100% sure its happened on build

The issue is on SDK unity version 1.1.2

@ZombieBP
Copy link

ZombieBP commented Jul 9, 2023 via email

@christopherferreira9 christopherferreira9 added the Bug Triage Unity Issues to be triaged in the next session label Jul 12, 2023
@christopherferreira9
Copy link
Collaborator

Hi @OmarVector can you try to switch the build settings to either MacOS or Windows and try to run again.
As an extra measure can you uninstall and re-download the MetaMask SDK plugin to be sure that you're on a clean state.
Thank you for reporting!

@christopherferreira9 christopherferreira9 removed the Bug Triage Unity Issues to be triaged in the next session label Jul 12, 2023
@OmarVector
Copy link
Author

Hi @OmarVector can you try to switch the build settings to either MacOS or Windows and try to run again. As an extra measure can you uninstall and re-download the MetaMask SDK plugin to be sure that you're on a clean state. Thank you for reporting!

Hi @christopherferreira9 , I dont think it would be produceable by Any other target build platform, bec this external api call only executed when the target build is Webgl.

However, I did uninstall the metamask completely and installed the latest one when I did the upgrade and the issue happened.

Thanks for follow up

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

No branches or pull requests

6 participants