Error with test in incognito tab

Hello,

when I try too subscribe/unsubscribe I got the following error in console:

wonderpush.min.js:16 Uncaught (in promise)
WonderPushSDK.Errors.PermissionError {message: “User denied notification permission”, stack: “Error: User denied notification permission↵ at …push.com/sdk/1.1.16.0/wonderpush.min.js:16:167342”, permission: “notification”, state: “denied”}
message: “User denied notification permission”
permission: “notification”
stack: “Error: User denied notification permission↵ at WonderPushSDK.Errors.PermissionError.Error (https://cdn.by.wonderpush.com/sdk/1.1.16.0/wonderpush.min.js:16:33089)↵ at new WonderPushSDK.Errors.PermissionError (https://cdn.by.wonderpush.com/sdk/1.1.16.0/wonderpush.min.js:16:92174)↵ at https://cdn.by.wonderpush.com/sdk/1.1.16.0/wonderpush.min.js:16:167342
state: “denied”
proto: Error

In the normal/not-incognito window it works without problems.

Thanks for some help with this!

Best regards,

Timo

Hi Timo,

Browsers do not support asking for the notification permission in Incognito or Guest mode (doc).
What happens under the hood is that the permission is not shown, and declined after a few seconds, so that it is not distinguishable from a user declining in normal browsing mode.

If you want to test as a new user, here is the recommended procedure: Testing as a new user.

Best,

Hi Olivier,

great - thanks for your help with this!

Best regards,

Timo