I try to usw pwa with samsung internet browser. But i cant trigger the the userchoice event of the prompt.
the code looks like this:
window.addEventListener('beforeinstallprompt', function (e) {
deferredPrompt = e;
deferredPrompt.preventDefault();
deferredPrompt.then((choice) => {
if (choice.outcome === 'accepted') {
console.log('User accepted the A2HS prompt');
} else {
console.log('User dismissed the A2HS prompt');
}
// Clear the saved prompt since it can't be used again
installPromptEvent = null;
});
})
In chrome i get the event of userchoice but in samung internet happens nothing... Can anybody help me in this topic?
thanks in advance
greets Roman