Triggered when an instance of your app is installed on a Wix site.
function onAppInstanceInstalled(handler: function): void;
handler(event: AppInstanceInstalledEnvelope): void | Promise<void>
import { appInstances } from "@wix/app-management";
appInstances.onAppInstanceInstalled((event) => {
// handle your event here
});