Unity Android GameObject stop updating after onActivityResult
Hi everyone!
I'm developing an app with unity that has to login to a Firebase database. One of the options is sign in with a google acount so I made a plugin with Android Studio that gets the google credential by calling an Activity that does so and sending a message to the C sharp code via UnityPlayer.UnitySendMessage .It normally works well the first time. But if I try to log in with a different account it seems that something breaks and stops working as expected. The message with UnitySendMessage is sent but not received by the gameobject.
First I thought that the gameobject was unactive or the script disabled, but using logs I saw that the function onResume (OnApplicationPause(false) in the c# script) is called and when it's called, the gameObject is activeInHierarchy, the script enabled and the timeScale is 1... but the object start to works as it was unactive... for example: I put a log every 5 seconds on the Update function but it does not execute after the UnitySendMessage.I have tried several things but I don't have any clue of what it could be.
Has anyone faced the same issue? If more information is needed, please ask it and I will provide it.
Thank you very much in advance ^^
Your answer
Follow this Question
Related Questions
PARSE ERROR: unsupported class file version 52.0 1 Answer
Google play games services plugin can't log in 1 Answer
Can i use Everyplay to record without upload 2 Answers
How to solve java.lang.ClassNotFoundException ? 0 Answers
Adobe Aviary Integration. Your hardware does not support this application 0 Answers