Shopify / shopify-app-template-php

263 stars 85 forks source link

got rejection email after publish shopify app. #457

Open RushiNCode93 opened 1 year ago

RushiNCode93 commented 1 year ago

Issue summary

Write a short description of the issue here ↓ hello all, I have developed one Shopify app using shopify-app-template-php. my development is complete, and I'm trying to publish on shopify app store, but got email of rejection app,

Reasone : Must implement Oauth and complete installation without errors. Resolve any issues that are returning errors after authenticating and ensure that your app has implemented OAuth correctly during the install process. Please refer to our OAuth documentation and see this screenshot for additional details.

my question is: shopify-app-template-php says the test app uses Cloudflare tunnel, for that run command "npm run dev" at that time there is one Cloudflare tunnel URL generated, and use that URL for Shopify app testing, when I check in the partner Shopify dashboard, Cloudflare tunnel is automatically is there in Shopify app setup.

now when I'm trying to publish it, the above error is comes, so now which URL do I need to ass in the Shopify App Setup, URL section.?

image

rafaelstz commented 1 year ago

You need to host your app in a server, associate a domain using SSL, and add your new URL to these fields you showed.

RushiNCode93 commented 1 year ago

@rafaelstz in which hosting, do I need to upload my app? for example, if I use a GoDaddy hosting provider, so should I need to upload my app on GoDaddy? and my another question is, is no any store I hosted then how can I upload or install my app?

nafeeur10 commented 12 months ago

Shopify suggests two hostings.

https://shopify.dev/docs/apps/deployment/web

You can also host on other hosting providers like AWS, DigitalOcean, etc.

https://github.com/Shopify/shopify-app-template-php#deployment

RushiNCode93 commented 12 months ago

Shopify suggests two hostings.

  • Fly.io
  • Heroku

https://shopify.dev/docs/apps/deployment/web

You can also host on other hosting providers like AWS, DigitalOcean, etc.

https://github.com/Shopify/shopify-app-template-php#deployment

@nafeeur10 I have tried to host on Netlify. but after successful deployment, the URL does not work, it's asking me for the Publish Directory name, where Shopify produces the output.

What should I need to add in Publish Directory field?

like my app was running the component,

the directory is: /Shopify-app/web/frontend/components/ProductsCard.jsx

ProductsCard.jsx is the main file that produced the Shopify App Output when running the "npm run dev" command.

below image that shows Netlify Asking for Publish Directory. Image URL: https://global.discourse-cdn.com/netlify/original/3X/7/1/71e503ade87939b541ea745db7e8b857e34be083.png

and from Shopify Community, I have asked brief questions: https://community.shopify.com/c/shopify-apps/deploying-shopify-app-in-netlify-but-not-working/td-p/2126188

RushiNCode93 commented 12 months ago

unexpectedly closed the issue, so reopen it again.

rafaelstz commented 12 months ago

Hi @RushiNCode93,

There is a way to create visual extensions to publish on the App Store that is different from the traditional component. I recommend read and follow this documentation: https://shopify.dev/docs/apps/tools/cli/structure