Open im-aditya opened 6 years ago
Im experiencing this scenario also, On first unity load its working perfect, then I used Application.Unload(); to unload unity and navigate to other react native screen, When navigate again to unity view, Unity will reload just fine and will work properly,
But the problem is that messaging is distorted. Unity still can send message and will be receive in react native side, But for react native part when attempt to send message to unity view. Unity will not be able to receive the message.
Im suspecting that react native still trying to send message from the previous view that has been unload.
Does anyone know how to fix this problem?
HELP PLEASE!!
I am facing 2 scenarios on iOS:
Also if I set Debug logs in the Unity onStart functions, I am not getting those logs as well. BUT the function calls are getting executed.
I am getting all the messages from UnitySide. After these calls are done, now if I call any functions on the UnityView, they are getting executed.
Why am I not getting a consistent behaviour ? In one scenario I am calling unity functions and they are immediately getting executed. On the other hand I am getting this error. How do I always get some callback from the Unity side that everything is set and I can start calling functions on the UnityView component ?