Shopify / shopify-app-bridge

https://shopify.dev/docs/api/app-bridge
86 stars 9 forks source link

Open in a new window redirect action not working on Shopify POS iOS #133

Closed chescko29 closed 2 years ago

chescko29 commented 2 years ago

Open in a new window redirect action not working on Shopify POS iOS

This code work in the Shopify Admin on an embedded app:

// Go to http://example.com in a new window

redirect.dispatch(Redirect.Action.REMOTE, { url: 'http://example.com', newContext: true, });

But if you try the same implementation on Shopify POS on iOS it doesn't works. It suppose to open the URL on the web browser.

To Reproduce

Steps to reproduce the behaviour:

  1. Implement the Open in a new window redirect action as documentation indicates: https://shopify.dev/apps/tools/app-bridge/actions/navigation/redirect-navigate#open-in-a-new-window
  2. Try this on Shopify POS

You will notice that it does nothing at all.

Look attached video for reference.

https://user-images.githubusercontent.com/4985387/183119292-dbd24474-1488-4cbf-98d7-775b43518826.mp4

Expected behaviour

It suppose to open the URL on the web browser.

Packages and versions

Platform

MitchLillie commented 2 years ago

Hi @chescko29! Thanks for the bug report.

This is actually a known issue and has already been fixed in an upcoming version of Shopify POS, specifically version 7.6.0. You should see that version released in the next couple of weeks. Could you try that and let us know if you're still seeing the issue?

chescko29 commented 2 years ago

Hi @MitchLillie.

Just confirming this issue is solved on Shopify POS 7.6.0.