all prompt available');
        };

        window.addEventListener('beforeinstallprompt', (e) => {
            e.preventDefault();
            deferredPrompt = e;
            showInstallButton();
        });

        const installButton = document.createElement('button');
        installButton.innerText = 'Install App';
        document.body.appendChild(installButton);

        installButton.addEventListener('click', () => {
            if (deferredPrompt) {
                deferredPrompt.prompt();
       