Nickersoft / push.js

The world's most versatile desktop notifications framework :earth_americas:
https://pushjs.org
MIT License
8.76k stars 548 forks source link

Hello, the notification popup cannot be displayed in Apple M1 Chrome #295

Open WGinit opened 2 years ago

WGinit commented 2 years ago

chrome version: Version 104.0.5112.101 (Official) (ARM64)

The notification permission has been granted

27ksandip commented 1 year ago

Hello @WGinit please add this line " requireInteraction: true" <script> Push.create("HELLO WORLD",{ timeout: 5000, requireInteraction: true, body: 'This is body text', onClick() { console.log("close") } }).catch(e => { alert('Please enable notification') // console.log('e') }) </script>