App bridge modal - communicate with iframe

Solved
Highlighted
Shopify Expert
57 0 19

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
Highlighted
Shopify Partner
100 16 30

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
Highlighted
Shopify Staff
Shopify Staff
46 8 13

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
Highlighted
Shopify Expert
57 0 19

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