react-native-unity icon indicating copy to clipboard operation
react-native-unity copied to clipboard

Message passing not working

Open khushaldogpack opened this issue 7 months ago • 4 comments

So i have embedded unity inside react native. The main work of unity in my case is to click photos or record video and then send the clicked photo/video back to react native. So every time when I build the app, message passing does not seem work for the first time. Sometimes it does work but sometimes it doesn't on both android and iOS. I always have to restart my app and then everything works normally. Is there a solution to this?

khushaldogpack avatar May 07 '25 18:05 khushaldogpack

@khushaldogpack did you find any solution??

shadowindali avatar May 14 '25 11:05 shadowindali

@shadowindali No nothing yet. @azesmway is there any solutions to this?

khushaldogpack avatar May 14 '25 13:05 khushaldogpack

@shadowindali No nothing yet. @azesmway is there any solutions to this?

I haven't noticed such a problem

azesmway avatar May 14 '25 19:05 azesmway

@azesmway, I have been facing this issue for the past couple months. Sometimes it works and sometimes I have to restart the app (keeping the server on) and then it works. Also message is being sent from react native to unity and that too only after unity is loaded. I am not sure if its unity that takes some time to load or something else.

Even when I make a release build for both Android and iOS, the problem persists sometimes.

khushaldogpack avatar May 15 '25 18:05 khushaldogpack