How to fix an outdated app error message?

How to fix an outdated app error message?

stevenjcarr
Shopify Partner
3 0 1

Hello,

 

We started experiencing an error message on our app with users stating, "This app is currently outdated and will no longer function after..."  I suspect this is related to the Event Version we are using, but I am not certain.  How do I determine the EOL for an event version OR can I simply change this to a newer version?  Is there usually fallout from just changing the version?

 

We also are looking to engage a developer on some modifications to the app.  Any developer recommendations are appreciated.

 

Replies 8 (8)

JoseSamper
Shopify Partner
4 0 1

Hello,

 

One of our customers also reported that exact message for at least 3 apps (from different developers) installed on their store. The message is not consistent because only appears for this store, other stores with the same app don't see the message.

 

We contacted Shopify Partner Support for clarification but, unfortunately, we haven't got an explanation yet.

 

Regarding the event version, any version is valid for 1 year. In our case, the date displayed in the message does not match the event version deadline.

stevenjcarr
Shopify Partner
3 0 1

Hey Jose,

 

We are seeing the same pattern.  The warning is not consistent and the dates do not match the projected version EOL's.  

ralhan_
Visitor
2 0 0

Hi Steven,

One of our customers also reported the same issue today. API Health is good and there is no notification email about this issue received yet. 

Did you receive any updates from Shopify?

Arunas
Shopify Partner
1 0 1

Hey there,

 

Same problem here - trying to publish a new app, all is good, except that when launched from within the unified admin, it yields this same error.

 

There is a related thread on Github as well: https://github.com/Shopify/shopify-app-bridge/issues/160. It is about the App Bridge, but there's one interesting comment:

 


If an app does not initialize an up to date version of App Bridge before the timeout, the Shopify admin assumes the app is not compatible with the upcoming changes and a warning is shown to direct the user to the myshopify domain.

Our app does not use the App Bridge, so I am not sure what to make of it. Support told me to check the frame-ancestors header, which is present and correct. I have updated API versions as well, all should be fine. Our app actually loads, I can use it for a few seconds, and then this error is displayed all of a sudden.

 

Some comment from Shopify would be fantastic.

lerxstrulz
Shopify Partner
4 1 2

Having the same issue.  I am doing all the things required in the documentation:

1.  Verified Content-Security-Policy headers
2.  Using AppBridge v3.+
3.  Host parameter implemented correctly and no App Bridge errors.

It is weird how the app sits there for 5 or 6 seconds and is completely usable and then the warning appears.  I have asked support to escalate the issue, hoping for some insight as to why it's happening.


lerxstrulz
Shopify Partner
4 1 2

I was able to fix my app. I asked support to add a flag to my test store so that it would use the unified admin. 

The url for my app was an API that would validate the request (among other things) and then redirect to a React app.  AppBridge did not like the redirect and was throwing an origin mismatch error. I had hard-coded the host parameter for AppBridge as the url of my API since that was the defined url for the app and AppBridge was not throwing any errors, but it caused the outdated message to show ONLY when coming from the new unified admin url.  With the current admin it worked fine.

The fix was to change the url of the app to the React app, and have the app talk to the API for request validation, etc.  That way the origin for AppBridge always matches.

A couple of weird behaviors, though (again this coming from accessing the app through the unified admin):

1.  If I set forceRedirect on my AppBridge config to true, after installation the app would not load citing a CORS error.  My solution was to set this to false and manually handle redirects in my main app file to redirect to the login page if needed.

2.  My React app is hosted in Google Firebase, and I had added the content security headers as described in the docs to the deploy config, but I would get an error stating the frame refused to load the app because it was being prevented by the 'admin.shopify.com' header.  So removing that took care of that issue and now everything works as it should.

So apparently the new unified admin system is WAY more picky that the old admin system which apparently was letting me get away with some stuff it shouldn't have 😉

Hope this helps someone....it was very frustrating for me to get 99% approved except for this issue that popped up at the last minute.  This is my first app for Shopify and it has been quite the learning experience.


ralhan_
Visitor
2 0 0

It did not work for me however I found this more interesting. As per Shopify only merchants in the beta programs for these changes will see the banner and its related to the timeout.

More details here: https://github.com/Shopify/shopify-app-bridge/issues/160#issuecomment-1315749143

stevenjcarr
Shopify Partner
3 0 1

We are not to a resolution yet but I agree it is related to the App Bridge version.  This post from Shopify does give more detail.  And some more on migrating the bridge version is here.

 

We are working on the changes to our app internally and hope to be in the clear shortly.