App reviews, troubleshooting, and recommendations
I'm using something similar to the following snippet to redirect the user to a new tab:
redirect.dispatch(Redirect.Action.ADMIN_SECTION, {
section: {
name: Redirect.ResourceType.Product,
resource: {
id: id
}
},
newContext: true
});
This currently opens a new browser tab and loads the product with the specified ID. What I really need is to be able to grab a handle to the new tab so that I can detect if it has been closed.
I was using vanilla JS for this before (which was a little hacky), but I'd like to use AppBridge. The problem I'm running into is that I can't figure out a way to get access to that new tab. I tried subscribing to the dispatch event, but that doesn't actually work at all for some reason.
In any case, does anyone have any thoughts on how I could access that new window (tab) so I can detect if/when it's closed?
On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023You've downloaded the Search & Discovery app from the Shopify App store, and as you're ...
By Skye Nov 8, 2023The year-end shopping season is just around the corner. Is a flash sale on your radar? Are...
By Jasonh Nov 6, 2023