startInstallFlow()

Opens the one-step installation modal for a Wix app.

The app installation modal

Important: This method is only available in the editor.

Method declaration

Copy

Parameters

NameTypeDescription
argsInstallFlowRequestConfiguration options for installing the app.

InstallFlowRequest

NameTypeDescription
appIdstringRequired. The ID of the app to install.
enablePostInstallNavigationbooleanWhether to redirect after installation for additional app setup. Default is true. If you call the method in the editor, the method ignores this field and doesn't redirect.

Returns

Copy

A promise that resolves to an InstallFlowResponse indicating the result of the installation attempt.

InstallFlowResponse

NameTypeDescription
statusstringStatus indicating that the installation completed or explaining why it didn't. Possible values:
  • SUCCESS: Installation completed successfully.
  • CANCELED: The Wix user canceled the installation process.
installedAppsInstalledApp[]Array of installed apps. Includes the target app and any apps that were also installed because they're dependencies for it. The response includes this field only if status is SUCCESS.

InstalledApp

NameTypeDescription
appIdstringThe ID of the installed app.
versionstringThe version of the installed app.

Examples

Install an app

Copy

Errors

This method may return the following error codes:

  • ALREADY_INSTALLED: The app is already installed on the site.
  • UPGRADE_TO_PREMIUM: The installation requires upgrading the site to a premium plan.
  • CONNECT_DOMAIN: The installation requires connecting a domain to the site.
Did this help?