Cannot install app from Dev Dashboard during local OAuth testing

It seems I found a bug: the app cannot be installed correctly from the Dev Dashboard during local development
Steps to reproduce:

  1. Create a new app using shopify app init
  2. Run: npm run dev
  3. Open “Open app preview” — everything works correctly
  4. Remove the app from the store
  5. Go to the Dev Dashboard and install the app from there
    5.1 The bug can also be reproduced by installing the app directly from the Uninstalled tab

The installation link provided there looks like this:
https://admin.shopify.com/?organization_id=***&no_redirect=true&redirect=/oauth/redirect_from_developer_dashboard?client_id=***

After installation, the following page is shown:
Example Domain This domain is for use in documentation examples without needing permission. Avoid use in operations.
Learn more

I think this should not happen. The app should install correctly during local development and automatically use the Cloudflare tunnel URL generated by npm run dev.
Also, steps 3 and 4 may not even be necessary to reproduce the issue.

Hi @Oleg_Korshunov :waving_hand: thanks for reaching out.

I did some testing and I see what you mean here. The install link from the Dev Dashboard will always use the app_url of the app (https://example.com on a freshly created app using shopify app init) rather than the Cloudlfare tunnel URL.

I’m going to do some more digging and I’ll follow up with you here when I have more information to share.

Hey @Oleg_Korshunov - just following up on this.

Are you still running into this issue? I sent you a DM requesting your shop ID and app ID combo to look at the specifics of your setup on Monday and haven’t heard back yet.

If you could provide that info, it would definitely help out with our investigation :slight_smile: