Upon installing the app, I am being redirected to a non-embedded version. When accessing the app from the installed apps list, the app is redirecting to the embedded version. This occurs when an initial OAuth request redirect fails to escape the iframe. Refer to our Shopify App Bridge documentation.
Followed the exact same steps as mentioned in the tutorial.
This is the response after getting rejected from Shopify App Approval.
Now I have tried several possible solutions to this problem.
Tried to initialize Shopify App Bridge using @shopify/app-bride-react
Was doing ctx.redirect(“/”) when this problem was occurring, from an answer on forum, I redirected the app to https://${shop}/admin/apps/${appName}
Here you go @Souravv . You can see that I am using Provider component from app bridge. On development env, you won’t see any changes but on production, you’ll see that you are first taken to your app url on install and then redirected to embedded version of it.
Shopify needs to improve their documentation. It took me time to realize this as it was nowhere in the documentation.
I will definitely implement it, but I have one doubt if it doesn’t make any difference in development environment, will it pass through the app approval process?
Yes, it will pass as the reviewer tests the app in production, I think so as they have no concern over this issue anymore after I implemented this solution.
Hello, guys I am having the same issue, but I am using Rails with HTML and a little bit of JS, could you please help me achieve this redirect?
Is there a way to test it in development, since @im_asad said that it works only in prod?
@Trish_Ta Thanks for your Answers.
yes but I am still facing the same issue. I am getting Auth flow endless loop, but I can see the Access token is valid I was able to make an APi call from the postman.
Just looking at the thread here, I can see that initial solution is from a few years ago. Can you share a few more details on your specific integration, including any guides you are following, examples of the issue, errors received, etc, then we can take a closer look.