OneSignal-Website-SDK
OneSignal-Website-SDK copied to clipboard
[Question]: Subscription ID -OR- token not available (Chrome)
How can we help?
I subscribe to User.PushSubscription.addEventListener
and I allow the notifications.
- On one Chrome browser:
ev.current.token: undefined
(whileid
is available) - On another Chrome browser:
ev.current.id: undefined
(whiletoken
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 🙏