my app audit failed, but I don't know how to modify it

imile
Shopify Partner
3 0 2

App must install successfully.

Your app does not request installation on the shop immediately after clicking "add app". Apps must ask a shop for access when being installed on a shop for the first time, as well as when they are being reinstalled after having been removed. During install or reinstall we expected Oauth to be initiated at https://appstoretest5.myshopify.com/admin/oauth/request_grant but was redirected to —————— /. 
 

I didn't see this URL in the development documentation

1. users click Add app to jump to app url

2. the app will jump to https://${shop}/admin/oauth/authorize

3. user check the information and click Install

4. jump to app

what's wrong with this process?

appstoretest5 was installed for the first time on August 10, Beijing time, and then was installed again on August 13, that is, just now. Can we change another store during the audit

 

 

Replies 11 (11)
imile
Shopify Partner
3 0 2

During app review, my submission is always cancelled for unknown reasons.

And I've never received an email with a successful submission or a failed audit

_JB
Shopify Staff
Shopify Staff
836 100 218

Hey @imile,

The documentation for redirecting to that URL is here: https://shopify.dev/tutorials/authenticate-with-oauth. Your app will receive a request at your specified install URL, and the first thing it should do is redirect the user to the mentioned Oauth URL. If you don't preform this redirect, your submission will be automatically rejected.

JB | Solutions Engineer @ Shopify 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

imile
Shopify Partner
3 0 2

I know it.

When a new store is installed, I normally jump to /admin/oauth/authorize. If it is a new store, this URL will jump to /admin/oauth/request_grant

But the audit is not a brand new store. The store he used has installed my app, so it will jump to my home page instead of the authorization page.

rrttalv
Tourist
4 0 4

I am having the same issue. Shopify is doing nothing to fix this or offer a sensible solution.

 

Your docs are broken and you are wasting everybody's time!

fifi15
Tourist
6 0 2

i'm facing same issue, any solution?

_JB
Shopify Staff
Shopify Staff
836 100 218

@imile 

The store he used has installed my app, so it will jump to my home page instead of the authorization page.

This will only be the case if the app is currently installed on the store. If the app has been removed, then the API permissions are removed as well and those need to be granted again by the merchant though oAuth.

@fifi15 @rrttalv 

Can you provide more details?

JB | Solutions Engineer @ Shopify 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

rrttalv
Tourist
4 0 4

I followed your tutorial on creating a Shopify app with Koa router.

 

This one: https://shopify.dev/tutorials/build-a-shopify-app-with-node-and-react to be more specific.

I submitted my app to be listed and reviewed, but I get this message:

App must install successfully.
Your app does not request installation on the shop immediately after clicking "add app". Apps must ask a shop for access when being installed on a shop for the first time, as well as when they are being reinstalled after having been removed. During install or reinstall we expected Oauth to be initiated at https://appstoretest5.myshopify.com/admin/oauth/request_grant but was redirected to https://appstoretest5.myshopify.com/admin/apps/xxxxxxxxxx.
Learn more about authentication in our developer documentation

 

It's quite obvious that the tutorial is either lacking very important details or something regarding the automated tests is broken. The community forum has tons of posts like these and they are just ignored, no official solution has been proposed.

fifi15
Tourist
6 0 2

My app has already pass review few days ago until i submit new code without any change of authentication (about 5 days ago),

Everything is perfect when test on development store but when i submit a review i get message:

App must install successfully.
Your app does not request installation on the shop immediately after clicking "add app". Apps must ask a shop for access when being installed on a shop for the first time, as well as when they are being reinstalled after having been removed. During install or reinstall we expected Oauth to be initiated at https://appstoretest5.myshopify.com/admin/oauth/request_grant but was redirected to https://appstoretest5.myshopify.com/admin/apps/<app_token>. Learn more about authentication in our developer documentation

 

Yesterday shopify was down,

Does shopify make some change on automated tests and i don't know ?

Any solution for this issue?

_JB
Shopify Staff
Shopify Staff
836 100 218

Hey @fifi15 @rrttalv,

I'd like to investigate this further. To do so, I'll need your app id which can be found in the URL when viewing your app in the partner dashboard (it's the string of numbers after /apps/).

JB | Solutions Engineer @ Shopify 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

fifi15
Tourist
6 0 2

Hi @_JB ,

This is my custom app that build for testing:

https://partners.shopify.com/xxxxxx/apps/3992849

Thank you for your assistance!

rrttalv
Tourist
4 0 4

Thanks for your reply. My app somehow passed the automated test but is back in draft without any message.

 

I don’t understand what is wrong with it. App id: 4214635