Beforeinstallprompt event?

window.addEventListener('beforeinstallprompt', (e) => {
    console.log('addToHomeScreen beforeinstallprompt');
    deferredPrompt = e; 
	console.log('deferredPrompt set:', deferredPrompt); = 'block'; 
   // = 'block';

Why doesn’t beforeinstallprompt work in Samsung browser?
It works in Google Chrome.


Thank you for posting on the Samsung Developers Forums.

According to the Samsung internet team, the issue with beforeinstallprompt has been solved. You can try testing it using this website: If the issue persists on your website, please give me a website link where we can replicate the issue. I will forward it to the development team.

Samiul Hossain
Samsung Developer Forums