When use Shopify App Bridge Redirect (open in a new window) action (https://shopify.dev/apps/tools/app-bridge/actions/navigation/redirect-navigate#open-in-a-new-window) it works pretty well on the Shopify Admin from a web explorer.
But once you try to use this on the Shopify POS app, it just doesn’t do anything on iOS. We expected it open the URL in an external browser.
Anyone from the app bridge team can confirm if this is a bug? or if this is anything it supposed to work?
Is there any other developer with the same experience?
Hey @chescko29 - thanks for getting in touch. I can say that we have been investigating some unexpected behaviour with App Bridge recently, but can’t confirm if the issue you described is related. Would you be able to share an X-Request-ID from an API response body for one of the actions that results in the error when your App tries to redirect to a new window?
This would allow me and my team to further look into the specific API call to see if we can narrow down what the issue is/if it’s related to some of the behaviours we’re seeing on our end.
No worries if not though - if you have a timeline for when the last error occurred we can also investigate that way.
Hope to hear from you soon!
Hi Alan117.
I can’t get the X-Request-ID because it’s executing inside the Shopify POS app, and as I know there isn’t a way to debug from the Shopify POS on iOS.
Just for the records, it works pretty well on the Shopify Admin on a web browser but it doesn’t works on Shopify POS App when the app is showing inside a POS links App Extension.
On summary, when use (sample code):
redirect.dispatch(Redirect.Action.REMOTE, {
url: 'https://example.com',
newContext: true,
});
It works on Shopify Admin (it opens the links on a new tab).
But same code, running inside a POS links App Extension window on Shopify POS do nothing. It doesn’t opens the URL on external browser.
Thanks.
Hi.
Just for the record. It was a known issue and has already been fixed on Shopify POS, specifically version 7.6.0.
Actually, you can see the issue report I created, now closed, on GitHub: https://github.com/Shopify/shopify-app-bridge/issues/133