I want to achive feature for install/open button with PWA application my goal is:
let installButton = document.getElementById('pwa-install');
let prompt;
window.addEventListener('beforeinstallprompt', function(e){
e.preventDefault();
prompt = e;
});
installButton.addEventListener('click', function(e){
prompt.prompt();
})
my question is... there is any way for open prompt like chrome after user install PWA the icon change and chrome propose "Open Application"?
Im talking here only for desktop i dont use PWA for mobile devices. I searched for something like this but only what i found is button for install and i wonder if it is even possible make button for open PWA as standalone app.
Thanks in advance for any help