Development discussions around Shopify APIs
To continue receiving payouts, you need to secure your account by turning on two-step authentication. If two-step authentication is not turned on your payouts will be paused. Learn more
Hi all!
I'm created public app based on latest App Bridge React 2.0 and Koa Auth. Everything works fine, app is installed successfully, except for one final touch: redirection ctx.redirect(`/?shop=${shop}`) after installation leads to store instead embedded (iFrame) app and does not allow me to complete the project. React App Bridge config:
const config = {
apiKey: API_KEY,
host: encodedHost, // base-64 encoded shopOrigin
// shopOrigin,
forceRedirect: true
};
After webHookRegistration.success final step is ctx.redirect(`/?shop=${shop}`), and installation process lead not to the admin embedded app (behavior in AppBridge 1.XX), but to store's url like:
https://mydevstore.myshopify.com/apps/.....API_KEY...../?shop=mydevstore.myshopify.com
If you have experience with this, help me please
Same issue. Oauth redirects to /apps instead of /admin/apps resulting in a 404. Seems to be a Shopify issue and not the app redirecting to the wrong place, since the app never handles the redirect specifically to /admin/apps.
Have you used a "host" parameter?
As far as I know /?shop=${shop} should be automatically redirects to admin app.
As far as I can tell the host parameter has nothing to do with redirects. But I am using it according to the docs.
User | RANK |
---|---|
5 | |
5 | |
4 | |
4 | |
4 |
Learn these 5 things I had to learn the hard way with starting and running my own business
By Kitana Jan 27, 2023Would you love to unleash the unbridled power of the Google Shopping Channel into your sho...
By Gabe Jan 6, 2023How can you turn a hobby into a career? That’s what Emmanuel did while working as a wa...
By Skye Dec 30, 2022