Is it allowed to use iframes in theme app extensions?

melz1
Shopify Partner
1 0 0

I'm using an iframe in my liquid snippet to embed a specific route of my nextjs app so that I don't need to recreate my component library. Is this allowed? My code works but definitely running into some issues communicating between the store and the iframe which I've figured out workarounds for but just wanted to know if this will be rejected in the app store. Also would love to know the best way to render a modal triggered from the app extension. 

<iframe src="route-to-my-app"></iframe>
{% schema %}
  {
    "name": "Tokengate",
    "target": "section",
    "templates": ["product"],
    "settings": []
  }
{% endschema %} 

 

Reply 1 (1)

Liam
Shopify Staff
2731 299 769

Hi Melz1,

 

Checking with our internal team on this one!

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog