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

Open
tragicmj opened this issue Jan 19, 2024 · 0 comments
Open

processSubscriptionModel: missing onesignalId #136

tragicmj opened this issue Jan 19, 2024 · 0 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":{}}
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

1 participant