OneSignal-Website-SDK icon indicating copy to clipboard operation
OneSignal-Website-SDK copied to clipboard

[Question]: Subscription ID -OR- token not available (Chrome)

Open eightyfive opened this issue 10 months ago • 6 comments

How can we help?

I subscribe to User.PushSubscription.addEventListener and I allow the notifications.

  • On one Chrome browser: ev.current.token: undefined (while id is available)
  • On another Chrome browser: ev.current.id: undefined (while token is available)

Why is that?

More generally when to use id vs token? I can see that to create a Notification via API I need to pass the subscription id to include_subscription_ids... So what's token for?

Thank you in advance 🙏

eightyfive avatar Aug 30 '23 06:08 eightyfive