Shopify / shopify-app-bridge

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

Optimized loading on mobile devices for REMOTE redirect on working #231

Open makasanas opened 1 year ago

makasanas commented 1 year ago

Describe the bug

A clear and concise description of what the bug is.

 const redirect = Redirect.create(app);
  redirect.dispatch(Redirect.Action.REMOTE, {
      url: redirectUri,
  });

In desktop everything is working fine but in mobile app remote Redirect.Action.REMOTE on same page not working. I want to re-auth app and that for need to redirect user to auth flow again.

Expected behaviour

App need to redirect on give remote url.

Contextual information

Packages and versions

List the relevant packages you’re using, and their versions. For example:

Platform

henrytao-me commented 1 year ago

Are you using absolute or relative url? Absolute url is required here.

makasanas commented 1 year ago

@henrytao-me I am using absolute path here. If you need then i can setup code in staging app send url to check this in detail.

makasanas commented 1 year ago

@henrytao-me problem is here I am redirecting on same origin. Because of that when I pass even Absolute url it considered it as relative url even if I I use Redirect.Action.REMOTE. it's work on desktop but not on mobile.