Open mramzan18 opened 1 month ago
@mramzan18 This could be happening due to a macOS bug that happens some systems. Can you try the repo steps here to isolate the problem? https://forums.developer.apple.com/forums/thread/746498
I am getting this error on onesignal prompt click as well "The Safari site URL, icon size, or push certificate is invalid, or Safari is in a private session." [safari desktop] v:17.4.1
Its documentation says, no need to add push certificate after safari 15. I am sure, I am not using private session. And other 2 reason, likely not an issue, with same site, I tried on safari ios (after adding site to home screen), it works fine.
Dont know what else to check. At least, some way to find that this browser cant get notification, so I can disable my button on site can help.
@sanishkr can you check if this is due to your system being affected by the Apple bug I noted above?
Here is a direct link to the MRE (minimal reproducible example): https://public-mre-macos-window-safari-prompt-bug.glitch.me/
I tried, it gives this as response in box below:
SafariLegacy.subscribe:response:{"deviceToken":null,"permission":"denied"}
@sanishkr have you found any solution?
Nope, not even any workaround yet. It is either with onesignal devs or safari devs from apple to fix this.
@jkasten2 Safari Version 17.4.1 (19618.1.15.11.14)
@sanishkr if you found any workaround then let me know as well
What happened?
The Safari site URL, icon size, or push certificate is invalid, or Safari is in a private session. whenever OneSignal.Slidedown.promptPush() is executed, prompt shown on safari browser and user click on allow button it instantly show this message 'The Safari site URL, icon size, or push certificate is invalid, or Safari is in a private session.' inside console and do not receive any push notifications. i tried to remove notification icon on onesignal dashboard as well .p12 file as well
import { useEffect, useState } from 'react' import OneSignal from 'react-onesignal' import { useSelector } from './useAppSelector'
const useOneSignalConfig = () => { const { oneSignalExternalId } = useSelector(({ auth }) => auth)
}
export { useOneSignalConfig }
What browsers are you seeing the problem on?
Safari
What operating system are you running?
macOS Sonoma 14.4.1
Steps to reproduce?
What did you expect to happen?
Push notifications on safari
Relevant log output
No response