Custom App Merchant install link does not work

Solved
Highlighted
New Member
2 0 1

Shopify recently changed the whole way apps are created in partners.shopify.com. Previously, I could create an app in there and use a link akin to https://[YOUR_SHOP_NAME].myshopify.com/admin/oauth/authorize?client_id=[YOUR_API_KEY]&scope=unauthenticated_read_content&redirect_uri=[YOUR_REDIRECT_URL] to install the app on a store. Now Shopify wants me to use a "Merchant Install Link" and it does not work. It sends me to the Redirect URL after I click it, as it should, but the custom app does not appear installed in the store's https://[YOUR_SHOP_NAME].myshopify.com/admin/apps section. I think this is a problem with the update which Shopify made to their interface. How can I install my apps now? They are just for one store, not to be published or anything. I tried to install apps on multiple stores now, but nothing is working.

0 Likes
Highlighted
Shopify Partner
5 1 1

I got the same problem. Any help is appreciated.

Highlighted
New Member
2 0 1

Did you figure it out? Shopify support doesn't seem to understand what is going on. They keep telling me the app needs 100 installs for their developers to look at it, and I keep telling them the problem is not with the app, it's with the updates they made to the platform.

Highlighted
Shopify Partner
5 1 1

The problem still perplexes me. I sent the screenshot and merchant install link to them. I waiting for their's response now, but not received yet.

WechatIMG789.png

0 Likes
Highlighted
Shopify Partner
5 1 1

I solved the problem by myself.
Follow the tutorials: Build a Shopify App with Node.js and React

After I run "npm run dev", Then use the merchant install link. It finally works.

 

0 Likes
Highlighted
Shopify Partner
5 1 1

This is an accepted solution.

Here is the screenshot of the node.js project.

WX20200109-134801.png

 

And this is the Url setting of the Custom app.

 

WX20200109-135437.png

 

0 Likes
Highlighted
Shopify Staff
Shopify Staff
1041 140 170

Hey @dan1000,

 

Were you able to make progress on this one? If not, are you able to provide the app id?

Notice; Out of office, replies will be delayed until my return. Thanks!
0 Likes
Highlighted
Tourist
10 0 0

Same problem here, 

 

This is such a tiring problem.Anyway, I dug out the old thread where I went through this last time:

 

https://community.shopify.com/c/Shopify-APIs-SDKs/Working-solution-that-replaces-private-apps-url-pr...

link to solution to make sure form the "install link" correctly https://community.shopify.com/c/Shopify-APIs-SDKs/Beta-process-for-unpublished-in-development-apps-i...

0 Likes
Highlighted
Trailblazer
173 13 28

I just went through this nightmare and wanted to share my experience in case it helps. As multiple threads have mentioned, the custom merchant install link simply does not work. Additionally, if you build an unlisted / unapproved public app, it will install fine on your own test / development stores, but surprise, when you try to let an actual merchant install it, you will get an error. 

 

What HAS worked (after much sweating leading up to a meeting with a client) is creating a custom app, GENERATING THE BROKEN CUSTOM INSTALL LINK and specifying that specific shop, and THEN sending them to an actual constructed OAuth2 permission URL: 

 

https://{shop}.myshopify.com/admin/oauth/authorize?client_id={api_key}&scope={scopes}&redirect_uri={redirect_uri}&state={nonce}&grant_options[]={access_mode}


If you try to send this link prior to generating a link and specifying which merchant your custom app is for, you'll get the non-descriptive error that they can't install this app using this link, please reach out to the developer for more information (of which I had very little). 

 

More background and another bug I ran into: I had my client-side app hosted at myshopifyapp.myhosting.com and within my code I'd specified my app's api_key. All was working fine with my development stores, but then I realized my client wouldn't be able to install my public, unlisted / unapproved app. Great, I should be able to create a custom app in Shopify, point it to the same hosting URL, and in my app change the api_key to match the new custom app, right? No - there was a weird bug where the OAuth link that kept generating as a result would still point to the old client_id even after I'd confirmed I'd changed it in my code. I had to actually create a new hosting link for my app myshopifyapp2.myhosting.com and THEN the client_id parameter in my OAuth link showed up correctly.