Hi, I’ve just completed the example of building an application in Messenger, and there are a couple of things I want to ask:
- Are there any techniques we can use to directly communicate with the parent site from a Messenger App if we are also running a script on the parent site.
- If that's not possible, can we relay a message to the parent script through a server using the visitor ID to identify the user.
For example:
- Get visitor id in the site script using
Intercom('getVisitorId')
. - Establish a websocket connection with our server with the visitor id
- In the Messenger App, pass a message to the server with the visitor id.
- The server can then relay the message to the parent site using the visitor id.