Managed app install and app restrictions

Hello Guys!

We have just submitted our second application, only one issue is pending to be resolved.

We have almost run out of ideas, please give me any advice, hint or whatever :slight_smile:

Our application uses the ā€œManaged app installā€.

This featureā€™s main functionality is the store owner will see a ā€œgrant accessā€ page, without interacting with our application directly.

We have set restriction in the distribution settings, to allow shops ONLY with hungarian business addresses.

Eventhough the reviewer could install the application from an UK and indonesian store.

The reviewer also said, we should somehow reproduce this sample ouath error.

My question is how can i get the requested oauth error page, if we go by ā€œManaged app installā€?

Since with this solution nothing sends requests into our app directly, is there any other configuration setup what we couldnā€™t find so far?

Thank you in advance!

Ɓkos

P.S.: I have found an issue in the other shopify forum with the same details, but so far nothing usefull has been answered :frowning:

What does your current flow look like? When someone installs the app outside of your target country?

Hello Jordan!

The application has not been approved, so only the shopify review team could install it with a UK and indonesia based store.

In the application settings/distribution we have restricted the storeā€™s business country only for hungarian stores.

We go with ā€œManaged app installā€, so if somebody wants to install the application, it goes by Shopify only, no any http call our application hits before the ā€œGrant accessā€ page, only after if they have indeed installed it and accepted the scopes.

The reviewer said we have to somehow produce an oauth error if the store wants to install it outside of our target country, but since we donā€™t have any active step in this flow by the nature of ā€œManaged app installā€, I am really out of ideas how to do that.

They want an oauth error like this:

But with ā€œManaged app installā€ it should be handled all by shopify.

Any idea?

You can create a development store, and set the country location at a different country and then test it for yourself. :blush:

Hello Jordan,

That would be fine, but based on my latest informations with a development store you can install whatever app you want, these restrictions are not applied for development store.

The other question is still, how can I achive the similiar oauth error by the app install if we goes by the ā€œManaged app installā€, as the Shopify reconmends it. Since till that point no http requests have been sent to our app, I am confused how should we achieve this behavior.