You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As the user logs in to our web app, we are calling $oneSignal.login(userId). After that we set up a few subscriptions to email and sms channels if the user toggles in our settings section.
When the user;ogs out we call $oneSignal.logout();. This call is giving the following error
We are using the following package version: "@onesignal/onesignal-vue3": "^2.0.1"
What browsers are you seeing the problem on?
Chrome (Chromium)
What operating system are you running?
Windows 10
Steps to reproduce?
1. Login using `$oneSignal.login(userId)`2. Set email subscription using `$oneSignal.User.addEmail(email);`3. logout using `$oneSignal.logout();`
What did you expect to happen?
The logout should work
Relevant log output
Uncaught (in promise) TypeError: Cannot read OSModelStore.js:32 properties of undefined (reading 'modelId')
at Ji.subscribeUpdateListener (OSModelStore.js:32:41)
at Ji.add (OSModelStore.js:16:14)
at en.add (CoreModuleDirector.js:106:32)
at tn.<anonymous> (LoginManager.js:113:9) at Generator.next (<anonymous>)
at r (tslib.es6.js:118:58)
The text was updated successfully, but these errors were encountered:
Thanks for reporting, we are able to reproduce this issue when OneSignal.logout() is called. It happens if a push subscription has not been created yet. We will look making a fix for this scenario.
What happened?
As the user logs in to our web app, we are calling
$oneSignal.login(userId)
. After that we set up a few subscriptions to email and sms channels if the user toggles in our settings section.When the user;ogs out we call
$oneSignal.logout();
. This call is giving the following errorWe are using the following package version:
"@onesignal/onesignal-vue3": "^2.0.1"
What browsers are you seeing the problem on?
Chrome (Chromium)
What operating system are you running?
Windows 10
Steps to reproduce?
What did you expect to happen?
The logout should work
Relevant log output
The text was updated successfully, but these errors were encountered: