App bridge modal - communicate with iframe

Solved
JoshHighland
Shopify Expert
65 1 22

I'm migrating an ESDK app to App Bridge.

In the ESDK I could open a modal, load an iFrame and communicate with it 
ShopifyApp.Modal.window()

I cant figure out how to do this with app bridge. Suggestions?

 

 

0 Likes
Jayvin
Shopify Partner
167 25 35

Hi Josh,

This documentation will help you out on how to display modal with App Bridge => https://shopify.dev/tools/app-bridge/actions/modal

0 Likes
hannachen
Shopify Staff
Shopify Staff
54 8 15

This is an accepted solution.

Hey @JoshHighland, happy to hear that you are making the move to App Bridge! To add to the resource that @Jayvin shared, I wanted to highlight the Communicate with the parent page section, that should have what you are looking for. These actions will allow you to communicate between your main app with an iframe modal.

0 Likes
JoshHighland
Shopify Expert
65 1 22

Thanks, I sorted it out. This is a very different approach to achieve the same thing. It would be awesome if there were examples of these methods in action.

0 Likes