processSubscriptionModel: missing onesignalId
tragicmj opened this issue · 1 comments
tragicmj commented
What happened?
After giving permission for Web Push, and trying to get PushSubscription.id I keep getting error instead of the id
What browsers are you seeing the problem on?
Chrome (Chromium)
What operating system are you running?
macOS Monterey v12.7
Steps to reproduce?
1. Installed React-Onesignal
2. Ask Permission for web push
3. console push id
What did you expect to happen?
I expected to get the push id
Relevant log output
SessionManager.js:70 Uncaught (in promise) n: Abort _getOneSignalAndSubscriptionIds: no subscription
at $t.<anonymous> (https://cdn.onesignal.com/sdks/web/v16/OneSignalSDK.page.es6.js?v=160101:1:102170)
at Generator.next (<anonymous>)
at r (https://cdn.onesignal.com/sdks/web/v16/OneSignalSDK.page.es6.js?v=160101:1:260398)
n: processSubscriptionModel: missing onesignalId: {"subscribers":{},"modelName":"pushSubscriptions","modelId":"9boxjm6ty9u","data":{"type":"ChromePush","token":"*******","enabled":true,"notification_types":1,"sdk":"160101","device_model":"MacIntel","device_os":120,"web_auth":"*******","web_p256":"********"},"awaitOneSignalIdAvailable":{}}
igeiton commented
I literally just had this error. I've tried a lot of solutions and here's what I can offer reset the application cache.