Skip to content

invalidoperationexception when app is in background and comes to foreground again. #22

Description

@alirezapir

in our app when game is in background for a while and we return to it, we get this error:

invalidoperationexception
System.Threading.Tasks.TaskCompletionSource`1[TResult].SetResult (TResult result) (at <cbd719cf9c4c450f93c8260479a647e2>:0)
Bazaar.Poolakey.Callbacks.ConnectionCallbackProxy.onDisconnect () (at G:/Unity Projects/NeuroLand/Assets/Bazaar/Poolakey/Scripts/Callbacks/ConnectionCallbackProxy.cs:21)
System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <cbd719cf9c4c450f93c8260479a647e2>:0)
Rethrow as TargetInvocationException: Bazaar.Poolakey.Callbacks.ConnectionCallbackProxy.onDisconnect()
UnityEngine.AndroidJavaProxy.Invoke (System.String methodName, System.Object[] args) (at /home/bokken/build/output/unity/unity/Modules/AndroidJNI/AndroidJava.cs:197)
UnityEngine.AndroidJavaProxy.Invoke (System.String methodName, UnityEngine.AndroidJavaObject[] javaArgs) (at /home/bokken/build/output/unity/unity/Modules/AndroidJNI/AndroidJava.cs:222)
UnityEngine.AndroidJavaProxy.Invoke (System.String methodName, System.IntPtr javaArgs) (at /home/bokken/build/output/unity/unity/Modules/AndroidJNI/AndroidJava.cs:248)
UnityEngine._AndroidJNIHelper.InvokeJavaProxyMethod (UnityEngine.AndroidJavaProxy proxy, System.IntPtr jmethodName, System.IntPtr jargs) (at /home/bokken/build/output/unity/unity/Modules/AndroidJNI/AndroidJava.cs:1231)

how to solve this?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions