Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

processSubscriptionModel: missing onesignalId #136

Closed
tragicmj opened this issue Jan 19, 2024 · 2 comments
Closed

processSubscriptionModel: missing onesignalId #136

tragicmj opened this issue Jan 19, 2024 · 2 comments

Comments

@tragicmj
Copy link

tragicmj commented Jan 19, 2024

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
Copy link

igeiton commented Jun 20, 2024

I literally just had this error. I've tried a lot of solutions and here's what I can offer reset the application cache.

https://documentation.onesignal.com/docs/clearing-cache-and-resetting-push-permissions#reset-chrome-on-desktop

@jennantilla
Copy link

Thanks for the suggestion, @igeiton! We'll go ahead and close this issue but feel free to open a new one if you encounter any other problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants