Skip to content

[Bug]: User is not created in OneSignal dashboard when using MacOS #365

@krilim

Description

@krilim

What happened?

Using WP plugin:

When I use Chrome and MacOS and accept OneSIgnal notifications no user is created whatsover in OneSignal Dashboard (I tried Chrome under Android and it works fine).

The example notification is shown but then no push notifications are received (again, it works fine in Android).

Doing OneSignal.User.PushSubscription.id returns:

local-9424ca5d-de3e-47d5-876c-39a170189877

Doing OneSignal.User.onesignalId returns undefined

The console shows this js error:

OperationModelStore.ts:103 update-subscription jsonObject must have 'onesignalId' attribute OperationModelStore.ts:103 create-subscription jsonObject must have 'onesignalId' attribute 37 OperationModelStore.ts:103 update-subscription jsonObject must have 'onesignalId' attribute IndexedDb.ts:356 Database PUT Error: DataError: Failed to execute 'put' on 'IDBObjectStore': Evaluating the object store's key path yielded a value that is not a valid key. at IndexedDb.ts:343:27 at new Promise (<anonymous>) at ti.dbOperation (IndexedDb.ts:331:18) IndexedDb.ts:343 Uncaught (in promise) DataError: Failed to execute 'put' on 'IDBObjectStore': Evaluating the object store's key path yielded a value that is not a valid key. ServiceWorker.ts:982 No notification id, skipping networks calls to report open! 

Wordpress version

6.8.1

OneSignal Plugin version

3.2.0

Steps to reproduce?

- Accept notifications
- Error appears in console

What did you expect to happen?

A valid user is created in OneSignal Dashboard

Relevant log output

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions