About Multi-Extension Apps

Building a multi-extension app enables you to build an app with several extensions. Each may include different features, but all of the extensions are related and will contribute to the app’s functionality.

For an example of a multi-extension app, consider an eCommerce app that can be split into three extensions:

  • The default extension is a Page extension that includes the product catalog of the store.
  • The shopping cart is a Widget extension that users can add to all the pages in their website.
  • The management of the store is an internal dashboard extension, which is managed from the user’s dashboard area. This extension is included automatically when the user adds the app from the Editor.

When developing a multi-extension app, develop each extension separately and then add all the extensions under the same app in the Wix Developers Center.

Terminology

  • Default Extension: The default extension that will be added when users add your app to their website, this is set by you when you register your app in the Wix Developers Center. If one of your extenions is a Page component, it will always become the default.
  • Extensions: All of the other components that are part of your app—except the default extension, e.g, a cart widget. Users can add the app extensions from the bottom of the App Settings.
  • Essential extension: An extension that is mandatory for the functionality of the app. This option can be checked when adding a new extension in the Wix Developers Center.

Linking each extension to the user's site

When a user adds your app, we’ll generate a unique ID for your app in this specific site – the App Instance ID. Use the App Instance ID to link your app to this site.

This ID is sent to you as part of the App Instance query parameter, which is a signed parameter that allows you to identify the website and the Wix user, and verify that the calling party is indeed Wix.

All of your app’s endpoints in this site will have the same App Instance ID, so each request sent to the Widget endpoint and to the App Settings endpoint includes the same App Instance ID in the iframe URL.

Was this helpful?
Yes
No