postMessage only works for one direction (using Layers API)

I’m using an app based on the Zoom Layers API officially provided.

I managed to send messages from the side panel to the CameraMode view)
The side panel view is using this.zoomSdk.postMessage({}); and the camera view is using this.zoomSdk.addEventListener("onMessage", this.onMessage); to listen.

It works.
But now I would like to send a message from the camera to the side panel. when I add this.zoomSdk.addEventListener("onMessage", this.onMessage); in the mounted() code, it doesn’t seem to get any messages. also not its own messages which it is successfully sending to the camera side.

What am I missing? I made sure I call the code in the right places.
No errors on console either.

hi @Mikron ,
Can you show your receiving code, do you get a received event, or nothing?
I did not even consider sending messages back from the camera!

all the best

John

Nothing. Ended up with a workaround for my needs.

ok, I don’t know how many people are using this feature, but I did see another report that this function stopped working on their windows version, yet mac was ok, so I am interested because there may be a bug here to be fixed.
all the best

John

hi @Mikron ,
Just for your information.
I have the listener working to send messages to the camera view and to reply.
It is hard to do because you can not get any real diags on error.
note that this is between camera mode and the app window in the meeting.
The apps window in the workplace app can not start the sdk and can not run message.

all the best

John