alesc
alesc

Reputation: 45

Shopware 6 app installation missing Integration

we developed an app following the guide:

https://developer.shopware.com/docs/guides/plugins/apps/app-base-guide

We successfully tested it with hardcoded secret (dev mode) in the manifest.xml. We have now removed the dev secret from the manifest and generated a true secret uploading our app. We received a test store to try it but we have this following issue: whenever we install and activate our app/extension we see on our server that the registration flow is correctly performed and an API key/secret is correctly generated.

When we search from the integration on the Shopware administration panel in "Settings>System>Integrations" no integration is displayed. We can't understand why. Any suggestion?

Thank you.

Upvotes: 0

Views: 391

Answers (1)

dneustadt
dneustadt

Reputation: 13161

When you look at the request payload in the administration for the request that fetches the integrations, you can find that integrations of apps are deliberately excluded. So it is intended that integrations associated with apps should not show up there. Check the database table integration instead, if you want to verify that your app has in fact created an integration record.

{
   // ...
   "filter":[
      {
         "type": "equals",
         "field": "deletedAt",
         "value": null
      },
      {
         "type": "equals",
         "field": "app.id",
         "value": null // means only integrations without associated apps
      }
   ],
   // ...
}

Upvotes: 1

Related Questions