-
Notifications
You must be signed in to change notification settings - Fork 115
Closed
Labels
Description
What happened?
New users don't receive push notifications on IOS devices. The old users that previously subscribed to notifications still receive it, but the problem is for the new users.
The initial prompt to allow notifications appears, and I grant permission. Then, the browser's native notification prompt appears, and I allow that as well. However, the user is still not subscribed.
When I do console.log OneSignal.User.PushSubscription.id it's undefined. but has no problem on windows and android devices.
What browsers are you seeing the problem on?
Safari
What operating system are you running?
Tested on IOS 18.5 and 16.7.10
Steps to reproduce?
1. Open the website via safari on IPhone.
2. Add to home screen.
3. Allow the notifications prompt.
4. The user does not get subscribed and does not receive notification.What did you expect to happen?
I expected it to be subscribed and receive notifications
Relevant log output
// OneSignal.User.PushSubscription
{_id: undefined, _token: "https://web.push.apple.com/QPGwwvD0cN74VazmEKiuTLc…C6JsSVL5DtZAUHwbH3ILJQ9-bTqutxeSgZcmR4WkoNN2Vfx-I", _optedIn: true, _permission: "granted"}Reactions are currently unavailable