This permission should asked for logged in users only. Script which is responsible for this permission is loaded only for logged in users.
Can you please recheck if you get that pop-up if not logged in? Disable all cache before testing.
Sorry, Samim but this is still not working well. Anyone getting to my website for the first time (before even registering) is getting this “Allow notifications” popup which may hurt conversion and increase bounce rates. See the attached screenshot. You can easily test this yourself by visiting the site. I’d appreciate a solution. Thanks.