This app is outdated and will no longer function after Wednesday, September 6, 2023

Solved

This app is outdated and will no longer function after Wednesday, September 6, 2023

Stuti17
Shopify Partner
13 0 0

Hi, we are trying to submit our app on Shopify but its getting rejected because of the message popping out on admin.Shopify domain which is not occurring on the myshopify.com domain, we have constantly made all the new changes like updating app-bridge with a host parameter we get from Shopify and adding admin.shopify in CSP header . As they suggested that app-bridge should load in 5 sec after DOM load which is also getting loaded but the message is still popping.

 

We are using PHP and JavaScript for our app .This is how we are using app-bridge -

 <script src="https://unpkg.com/@shopify/app-bridge@3"></script>
    <script src="https://unpkg.com/@shopify/app-bridge-utils@3"></script>
var app =  AppBridge.createApp({
                apiKey: shopify_api_key,
                host:  shopHost,
                shopOrigin: shopOrigin,
                forceRedirect: true
            });
our CSP header 
content-security-policy: frame-ancestors https://".$shop." https://admin.shopify.com
and after the verification we are redirecting the request to our landing page 
$install_url = "https://" . $shop . "/admin/oauth/authorize?client_id=" . $api_key . "&scope=" . $scopes . "&redirect_uri=" . urlencode($redirect_uri)."&access_mode=offline";
 
Please let us know if we can do something to remove this issue and submit our app .
Accepted Solution (1)

olavoasantos
Shopify Staff
21 5 15

This is an accepted solution.

Hey @Stuti17. How are you?

My name is Olavo and I'm part of Shopify's App Bridge team. Thank you for reaching out.

 

I noticed that you're initializing App Bridge using `shopOrigin` which is not a valid API on the latest version. Would you mind testing your app by initializing it only with `apiKey`, `host` and `forceRedirect`:

 

```

var app = AppBridge.createApp({
  apiKey: shopify_api_key,
  host: shopHost,
  forceRedirect: true
});
```

To learn more visit the Shopify Help Center or the Community Blog.

View solution in original post

Replies 6 (6)

olavoasantos
Shopify Staff
21 5 15

This is an accepted solution.

Hey @Stuti17. How are you?

My name is Olavo and I'm part of Shopify's App Bridge team. Thank you for reaching out.

 

I noticed that you're initializing App Bridge using `shopOrigin` which is not a valid API on the latest version. Would you mind testing your app by initializing it only with `apiKey`, `host` and `forceRedirect`:

 

```

var app = AppBridge.createApp({
  apiKey: shopify_api_key,
  host: shopHost,
  forceRedirect: true
});
```

To learn more visit the Shopify Help Center or the Community Blog.

Stuti17
Shopify Partner
13 0 0

Hey @olavoasantos thanks for the reply, the issue is fixed now.

rsquaretekdev12
Shopify Partner
2 0 1

How to verified that?

SIWebstores
Shopify Partner
5 0 6

We have

    <script type="text/javascript">
      var AppBridge = window['app-bridge'];
      var createApp = AppBridge.default;
      var app = createApp({
        apiKey: "<%= ShopifyApp.configuration.api_key %>",
        host: "<%= params[:host] %>",
        debug: "<%= Rails.env.development? ? 'true' : 'false' %>",
        forceRedirect: true
      });
    </script>

But still we see this warning message once per IP, if we click on Continue App, all devices on that Ip don't give that error anymore.

We have followed all steps here https://shopify.dev/apps/tools/app-bridge/updating-overview#ensure-compatibility-with-the-new-shopif...

but still this error comes for all requests from a new IP address. Is there something that can be missing?

waisal
Shopify Partner
5 1 3

have you found a solution to this problem?

cartAI
Shopify Partner
1 0 0

Hi Olavoasantos,

 

We are not using Shopify Node App Bridge. We have implemented python based app-bridge using Shopify REST APIs. Can you please suggest what we should do to overcome the outdated App error.

 

Thanks

Arvind