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

Android Support: Mono io layer error #42

Open
SolidJuho opened this issue Jul 5, 2021 · 2 comments
Open

Android Support: Mono io layer error #42

SolidJuho opened this issue Jul 5, 2021 · 2 comments

Comments

@SolidJuho
Copy link

Example scene working flawlessy on Win10 but on Android 11 there's following error when trying to authenticate.

Exception opening browser for auth: 'System.ComponentModel.Win32Exception (0x80004005): mono-io-layer-error (0)
  at System.Diagnostics.Process.StartWithShellExecuteEx (System.Diagnostics.ProcessStartInfo startInfo) [0x00000] in <00000000000000000000000000000000>:0
   at System.Diagnostics.Process.Start (System.Diagnostics.ProcessStartInfo startInfo) [0x00000] in <00000000000000000000000000000000>:0
  at PKCE_Authentification+<GetFreshAuth>d__15.MoveNext () [0x00000] in <00000000000000000000000000000000>:0
  at System.Runtime.CompilerServices.AsyncVoidMethodBuilder.Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0
   at PKCE_Authentification.GetFreshAuth () [0x00000] in <00000000000000000000000000000000>:0
  at PKCE_Authentification.StartAuthentification () [0x00000] in <00000000000000000000000000000000>:0
   at UnityEngine.Events.UnityAction.Invoke () [0x00000] in <00000000000000000000000000000000>:0
  at UnityEngine.Events.UnityEvent.Invoke () [0x00000
@SolidJuho
Copy link
Author

Ah, my bad. Seems like 2.0 currently only supports Win, Linux and Mac.
Seems like need to rollback to 1.5.
Is there any ETA for mobile support?

@JoshLmao
Copy link
Owner

JoshLmao commented Jul 5, 2021

Hey. As you found, v2 only supports Win Linux and Mac due to a deeper issue from Unity. I'd love to support mobile but the issue at hand is something I'm probably not good enough to fix.

Anyway, the issue is that IL2CPP hasn't implemented the Process class which prevents Process.Start() being called in the current setup. Here is a thread I read a bit ago on the issue with more info. I'd like to try and find a way around this but the issue spreads into SpotifyAPI-NET's EmbedIOAuthServer and the EmbedIO library, which I have no experience with

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