Unable to install custom app on live store

Unable to install custom app on live store

tech-houseofsbg
Shopify Partner
3 0 0

Hi

I am not able to get my app installed into a live store that I own.

The app is working fine on development stores, but when I am trying to install it to the store using the distribution link. It is not working

techhouseofsbg_0-1703586837280.png

Getting the below error.

 

Screenshot 2023-12-26 at 3.40.48 PM.png

 

Is there anything I'm missing?
The app was generated using shopify-cli and is deployed to Vercel

Replies 5 (5)

Samia_Akram22
Shopify Partner
60 10 17

@tech-houseofsbg Absolutely, here's a custom response addressing the issue of an app working on development stores but encountering installation problems on live stores:

1. Live Store Configuration:
Check if your app's settings in the Shopify Partner Dashboard are configured to allow installations on live stores. Ensure that the permissions and settings cater to live environments and aren't limited to development setups.

2. Permissions and Scopes:
Review the permissions and scopes granted to your app. Confirm that your app has the necessary permissions required for installation on live stores.

3. Redirect URLs and Whitelisting:
Verify that your app's redirect URLs are set correctly for live store installations. Sometimes, an incorrect or unverified redirect URL can prevent successful installations.

4. API Credentials for Live Environment:
Make sure that your app's API keys, secrets, or access tokens are updated to correspond with the live environment. Ensure the right credentials are used for live store installations.

5. Installation Flow Differences:
Examine your app's installation process to spot any differences between installing on a development store versus a live store. There might be specific steps needed for live store installations.

6. App Proxy and URL Configuration:
Check that any app proxies or URL configurations in your app's code are adjusted and correctly pointing to live store URLs.

7. Clear Cache and Cookies:
Clear your browser's cache and cookies or attempt the installation link in a private/incognito window to eliminate potential issues related to cached data.

8. Vercel Deployment Considerations:
Ensure that your app deployed on Vercel has environment-specific settings correctly configured for live stores.

9. Logging and Debugging:
Implement additional logging or debugging within your app to track the installation process on live stores. This can help pinpoint the exact stage where the installation fails.
Hope this will help.Thanks

 

Problem Solved? ✔Accept and Like solutions to help future merchants.
tech-houseofsbg
Shopify Partner
3 0 0

Hi Samia,

Is there a step by step guide I can follow? To publish custom apps for live stores
I can't seem to find anything wrong with the configuration

Samia_Akram22
Shopify Partner
60 10 17

@tech-houseofsbg  sure ,You can go through the following steps to figure out the issue and you can check the following link for installation of custom app on shopify store.

https://shopify.dev/tutorials/authenticate-with-oauth.

1. Check App Settings: Verify that all the settings and permissions needed for your app to work on the live store are correctly configured.

2. Look for Error Messages: If the installation fails, check for any error messages or logs that could explain why it's not working.

3. Permissions and Restrictions:Make sure your app has the necessary permissions to be installed on the live store. Sometimes, live stores have different rules than development ones.

4. Check API Limits: Some platforms restrict the number of apps or requests allowed. Ensure you're not hitting any limits.

5. Read the Guidelines: Check the platform's guidelines for installing apps. There might be specific steps you need to follow.

6. Try Installing Elsewhere:See if you can install your app on a different live store to understand if the issue is store-specific.

7. Contact Support:If nothing works, get in touch with the platform's support team for help. They might have solutions or insights.

8. Update App Version: Make sure you're using the latest version of your app. Older versions might not work due to changes in the platform.

 

By going through these steps and double-checking everything, you might identify what's causing the problem with your app installation on the live store. If you're still stuck, reaching out to the platform's support team is your best bet.Hope this helps.Thanks

Problem Solved? ✔Accept and Like solutions to help future merchants.
tech-houseofsbg
Shopify Partner
3 0 0

Hi Samia,

I don't have any other live store to test it on.

I tried to increase the log level to DEBUG on shopify.server.ts, but no logs were printed while installing the app using the link.

I have also changed the distribution to AppDistribution.SingleMerchant

I still have the same issues.

I did find one error
Screenshot 2023-12-29 at 11.51.53 PM.png
Any idea what could be causing the 401? maybe that's the issue here.
Samia_Akram22
Shopify Partner
60 10 17

@tech-houseofsbg A 401 error typically indicates an authorization issue, meaning the request lacks valid authentication credentials. In the context of Shopify app installation, encountering a 401 error during installation could be due to various reasons.

To troubleshoot:

  • Double-check the API credentials used for the live store installation.Incorrect Api key or secret key can also lead to 401 error.
  • Verify the permissions and scopes required by the app during installation.
  • Compare the configurations between the live and development stores.
  • Check if there are any security measures or plugins blocking the app installation on the live store.

Hope this helps.Thanks

Problem Solved? ✔Accept and Like solutions to help future merchants.