I'm trying to open a popup using the ShopifyApp.Modal.open function(https://help.shopify.com/en/api/embedded-apps/embedded-app-sdk/methods#shopifyapp-modal-open-init-fn) with no footer buttons and no matter what height I pass it opens by default at 400px.
The width parrametter works.
Is there something wrong I do with the height?
Hey @Widgetic ,
I would highly recommend that if you are building a new app or making significant upgrades to your app, you use the new "Shopify App Bridge" client-side library instead of the legacy "Embedded App SDK". The Shopify App Bridge has the same functionality as the Embedded App SDK, and you can read this documentation here to customize the size of a Modal by passing in one of 4 different `Moda...
If you continue to use the Embedded App SDK, be aware that today all all existing apps - without having to update their code - utilize the Shopify App Bridge backwards compatibility layer. This backwards compatibility layer listens for legacy Embedded App SDK methods to be called and translates them to their equivalent Shopify App Bridge actions. However even with this backwards compatibility layer, we still recommend that you upgrade your app to use the Shopify App Bridge directly for any new work/updates in order to utilize the following benefits:
Hassain | Developer Support Specialist @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Click Accept as Solution
I tried to do what it says in the Shopify App Bridge documentation here: https://help.shopify.com/en/api/embedded-apps/app-bridge/actions/modal#create-an-iframe-modal-a-rela...
but the popup won't open at all.
I did dispatch the the open event but no chance.
If I log the classes itself and the objects all seems to be good, not undefined.
But when calling the function nothing happens.
Is there a reason that the pop would not open for?
|an hour ago|
|an hour ago|