When trying to initiate an app intent via the bridge inside of a max modal, the intent renders underneath the max modal and is not accessible. This looks like a recent change (within the last day or so). See video: Watch maxmodal-intent-bug | Streamable
cc @Henry_Tao
Hey @marcbaumbach just for cross reference, this has been reported before
Thanks for the info, I read through those posts as well. The suggestion from the Shopify staff member to try to submit requests to the App Bridge via our main frame through postMessage feels like a roundabout way to do something the bridge is kind of already doing to the parent frame anyway.
Maybe I’m missing something, but I would think any communication to the bridge in one our frames is going to eventually communicate back up to the main parent frame.
It would be ideal if Shopify solved this at the bridge layer so we don’t always have to build an adapter that will forward requests from inside of a max modal up to the bridge when the parent containing the max modal doesn’t really have a need to communicate with the underlying max modal. We effectively need to have all bridge related code that might live in a max modal wrapped with an adapter (with a matching API interface to the bridge) that knows whether it’s in a modal or not and either forward the request to the parent frame or execute it directly on the bridge.
There may be some technical issues with building that communication automatically, but this wasn’t documented as something that needs to be done originally as far as I can tell and this used to work. Maybe something changed recently?
I should also mention that it’s seemingly working to initiate communication to the bridge, it’s just looks like a z-index problem… as the intent is opening, just underneath the max modal.
This looks like there was an App Bridge change that may have fixed this. Perhaps this: Release @shopify/app-bridge-react@4.3.0 · Shopify/shopify-app-bridge · GitHub