Communication with web page, iframe to parent


Hi everyone,
I’m currently trying to get my playcanvas app to interract with my web app.
In the doc i can see how to send informations to playcanvas using the postMessage method, but there is nothing about the iframe using postMessage to the parent.
Did anyone already manage to get the iframe to send a message to a web app using window.parent.postMessage() ?
Thanks a lot