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

on Mobile Chrome browser New Window does not open on Onclick #269

Open sazzadhusain2018 opened 3 years ago

sazzadhusain2018 commented 3 years ago

on Mobile Chrome browser New Window does not open on Onclick. Notification appers but onclick it does nothing on mobile chome browser. but in computer browser it works.

I am using this code:

tag: 'p'+lsobj.dta[i].r, body: lsobj.dta[i].m, icon: lsobj.dta[i].i, requireInteraction: (uam == 1) ? true : false, timeout: (uam == 1) ? 0 : 10000, onClick: function () { var u = this.tag; u = "https://www.mydomainname.net/noty.php?ref=" + u.substr(1); window.open(u); window.focus(); }, onClose: function () { this.close(); },

Waiting for your reply