d
Topic
Posts:
1
Last edited 10 days ago

Sales Channel - Embedded SDK on install

I don't know how to make my Sales Channel launch as an embedded app on first install. Could somebody please review my logic here and tell me where I am going wrong?

 

1) I have configured the App Url to https://www.myshop.co/shopifylanding/
When the user clicks to install the app it will first take them to this page.

2) On my end I validate the hmac parameter and if valid I redirect back to this URL
https://{shop}.myshopify.com/admin/oauth/authorize?client_id={api_key}&scope={scopes}&redirect_uri={redirect_uri}&state={nonce}&grant_options[]={access_mode}

3) This should open up the install prompt, i.e.
Prompt

4) If the user clicks to install the app it will take them to the redirect_uri I provided above. For me this is;
https://www.myshop.co/shopifyapp/

5) And now I!?
Right now I am leaving you on this page which is the problem you referenced. Sorry but I've been reading through the docs for the past couple of hours and got a little lost in it. I guess I need to redirect back to a different link which embeds in Shopify instead of https://www.myshop.co/shopifyapp/ but I can't figure out what that URL should be!

Found these docs but was unsure if this was the approach I should take;

https://help.shopify.com/en/api/embedded-apps/embedded-app-sdk/getting-started
https://help.shopify.com/en/api/embedded-apps/app-bridge

The app embeds fine when clicked through the Sales Channel store link just not when installed.

https://s3-eu-west-1.amazonaws.com/snaprail-dev-assets/Embedded.png

Kind regards,
Brian