Hey there,
We have an app that we have been using for different admin link triggered embedded apps written in Python/Flask. The app was working properly until a few days ago and now showing “This app is outdated and will no longer function after Wednesday, September 6, 2023.”
I updated the header fields (https://shopify.dev/apps/tools/app-bridge/getting-started/app-setup#set-the-frame-ancestors-directive) and added the app bridge code (https://shopify.dev/apps/tools/app-bridge/getting-started/app-setup#initialize-shopify-app-bridge-in-your-app) but the error is still showing. The error is gone on the index/home page of the app in admin, but the error shows up when using admin link trigger. Sometimes after reloading a few times, the error does not show up. Can someone please guide me on what solution can be added to fix this? This is the code added to the html of the app.
<script src="https://unpkg.com/@shopify/app-bridge@3"></script>
<script>
const AppBridge = window['app-bridge'];
const config = {
apiKey: "[API_KEY]",
host: new URLSearchParams(location.search).get("host"),
forceRedirect: true
};
const app = AppBridge.createApp(config);
</script>