I configured the redirect_urls
in the toml
file, when running shopify app dev, it generates a preview url with redirect_from_cli
, when accessing this url the app is installed, but I don’t receive anything in the callback url. If I assemble the url without informing redirect_uri
, my callback is called.
Why does this happen?
Are you using Shopify-managed installation? Then, any callback URLs won’t be called.
1 Like
When using TOML, the callback URL won’t be called. However, if the authorization code grant process is used, there will be notifications.
1 Like
Yes, I use Shopify managed installation, so how will I trigger my callback? I need this trigger for my backend to generate the access_token and register a carrier service
But if this doesn’t trigger my callback url, how will my API know about the installation, generate an access_token and register it with a carrier service? Sorry if this is a simple question, I’m new to Shopify app development and I’m trying to understand the correct flow.
Have you seen the prompt window asking you to install the app? If you install the app, the callback URL will be called. You can use the Network tab in Google Developer Tools to check the process.
1 Like
I’ve done this before, when I install with a URL that I create by inserting redirect_uri
in the URL, my callback is called (it appears in the network), but when I use the Shopify CLI and install using the preview URL link, where there is redirect_from_cli
, the callback is not triggered.
This flow is confusing to me.