i want to add custom install
button for my progressive web app within the site. i red many articles and tried the answer provided by them. they use beforeinstallprompt
let deferredPrompt;
window.addEventListener('beforeinstallprompt', (e) => {
deferredPrompt = e;
});
but the problem i am facing is i want the button to directly installed the pwa instead of triggering the installation prompt. is it possible, if so how can i achieve that. thanks you in advance.
The answer is, you can't. According to the manifest spec: