Unfortunately, this workaround won't work for the exact reason you are asking about. So, we can either figure out the problem, or you can make these 2 Apps support loosely-coupled interactions where you can pull them into a workspace App in Mashboard and complete the interaction wiring there.
Step three in the Embed process is about copying the <script> tag into the HTML page where the Apps are actually going to be used. Do you have access to that HTML page to edit it? And if so, what is confusing you about the copy/paste process?
If you don't have access to the HTML page where the Apps are going to be used, does someone else have access and can they do this step?
If not, your only choice is to make these Apps support loosely-coupled interactions. There are a few differences in how the Apps are coded for loose coupling:
1. Declaring the publish topics/subscribe topics in the App Spec of each App.
2. Using the receive(topic,msg) API method in the subscriber App to subscribe and receive published messages.
3. If the subscribing App has multiple subscriptions, the code in most cases cannot use the topic name from the published message to differentiate which message it is handling.
4. The interaction has to be wired in Mashboard in order to function properly.
Documentation for this is covered in http://www.jackbe.com/prestodocs/v3.0/apps-dev/wiringLooselyCoupled.html. If you have more questions, please let us know.
Sara, technical writer/jackbe
Where I'm lost is the html page where the Apps are actually going to be used. I have complete control, I just don't know what page you are talking about. Do I need to create a new website and create a page and use the embed script for both publisher and subscriber apps? So far I have only worked in the prestohub site. You are saying you cannot have tightly coupled apps as a composite app published in presto hub?
Good question! Sorry that wasn't in the documentation.
You can use tightly-coupled Apps in Presto Hub. Simply use them in Mashboard to create a workspace App that has both the publisher and subscriber in the same workspace. See http://www.jackbe.com/prestodocs/v3.0/mashboard/mashboard-intro.html for the basic instructions.
The one difference, in this case, is that because they are tightly coupled, you do not have to add Wiring in Mashboard to enable the Apps to interact. Basically, just drag them both into a new workspace in Mashboard and save the workspace. The interaction will work 'magically' without any additional work.
Then this workspace App is what you would use in Presto Hub, or in the App Store, rather than using the individual custom Apps.
Sara, technical writer/jackbe



I have a need for creating some tightly coupled apps. I've followed the instructions in the docs and everything is great right up to the "Tightly Coupled Interaction for Custom Apps page, when I get to the "Embedding Tightly Coupled Apps". I can get the embed code find, but starting at step 3 I am totally lost. I was thinking I could wire these together in Mashboard, so I created an html part next to my publisher app in the Mashboard, and pasted the script in it. But I have no idea how to get the ID of the element in the web page where this App will be rendered and am not even sure if this approach will work or there is a different/better way to do it?