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 has been archived by the owner on Jul 15, 2023. It is now read-only.
Hello.
I am trying to use this library with Unity application. I have created small library project and use it as "managed plugin" in Unity.
Unity version is 2018.3.6 (I tried 2019.1, with same result)
winsdkfb version is 0.15.0, installed with nuget.
Calling to session.LoginAsync always gives me WinRT originate error - 0x8001010E : 'The application called an interface that was marshalled for a different thread.'
I have tried wrapping the call in Windows.ApplicationModel.Core.CoreApplication.MainView.CoreWindow.Dispatcher.RunAsyncwith no success. Rewriting the code to use without using async/await, with session.LoginAsync(permissions).AsTask().ContinueWith((Task<FBResult> t) => {...}) also did no good.
Thank you.
The text was updated successfully, but these errors were encountered:
Hi! I solved that issue calling the FB functions inside of UnityEngine.WSA.Application.InvokeOnUIThread(async () => { }, false); the first time that I call an async function, then for the rest of async calls, you should call it inside of UnityEngine.WSA.Application.InvokeOnAppThread(async () =>{ }, false);
Hello.
I am trying to use this library with Unity application. I have created small library project and use it as "managed plugin" in Unity.
Unity version is 2018.3.6 (I tried 2019.1, with same result)
winsdkfb version is 0.15.0, installed with nuget.
Calling to session.LoginAsync always gives me
WinRT originate error - 0x8001010E : 'The application called an interface that was marshalled for a different thread.'
I have tried wrapping the call in
Windows.ApplicationModel.Core.CoreApplication.MainView.CoreWindow.Dispatcher.RunAsync
with no success. Rewriting the code to use without using async/await, withsession.LoginAsync(permissions).AsTask().ContinueWith((Task<FBResult> t) => {...})
also did no good.Thank you.
The text was updated successfully, but these errors were encountered: