We have developed an app to be used by a specific merchant for their POS system. we have some kind of payment contract with them. We do not want to expose the app to other shopify stores but just have this specific merchant use it.
How do I publish the app (or do we publish) to make this happen ?
Hey @runTimeZero ,
If you're only going to use the app for one shop, you can still create an app through your Partner Dashboard without making it public by making an 'unpublished' app. That will give you a chance to create an app and get an install URL (App URL) that you can provide a user to go through the OAuth process, and get an access token to use to access and manipulate shop data through the API. You could just keep your URL private and only share it on a shop-by-shop basis.
Let me know if you need a hand with anything else!
Hey again @runTimeZero ,
So when you created that app you would have provided it an 'App URL' in the Partner Dashboard, which is the same place users would be sent when installing from our app store. The difference being that the app store will add URL parameters to let you know what shop to begin installation on.
You can provide that 'App URL' to customers yourself though and use it to install it on their shops privately, without your app being made public on the app store. You would just need to get and provide yourself the shop domain manually so you know which URL to use for installation.
@Josh could you explain what link is to be used? I am trying the method outlined here (Jamie's answer): https://community.shopify.com/c/Shopify-APIs-SDKs/Beta-process-for-unpublished-in-development-apps-i...
Which means the app url should be https://yourunpublishedappurl?shop=storename.myshopify.com
I've tried this on my dev store and it shows briefly the app (which is not installed) and then redirects to my dev store admin but comes up with an error indicating the page is not found? Am I doing something wrong here?
I figured out what was wrong in case others come across this with a similar issue.
This wasn't working, it would redirect to my app but then quickly indicate page not found.
I installed through the partner dashboard on my dev store (using the install on development store link) with the network tab open on chrome and saw the GET request is actually https://unlistedappurl.com/auth?shop=dev-shop-url.com
So in case anyone else runs into this problem you are likely missing the auth bit. Hope that helps.
Hey @Adam_Hurlburt ,
This should still work, yes - it works with my test app. It'll probably take a little bit of internal debugging to get to the bottom of what is going on here though. I'd recommend taking a look at your OAuth flow and use any debugging tools you have to look for errors being thrown.
Hey @Josh, thanks for the followup. I posted the in the reply above what I found to be the issue. I was using the endpoint unlistedapp.com?shop=x and it seems I needed to be using unlistedapp.com/auth?shop=x. This was a bit confusing for me based on the earlier example urls which left out the auth part of the path. Maybe there is something specific in my app setup which is causing this, I'm using the koa-shopify-auth package. Since i have it working now I stopped debugging further.