Closed vamsi-kleargroup closed 1 month ago
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.
This has been fixed in this release: https://github.com/OneSignal/OneSignal-Website-SDK/releases/tag/160203
This update is automatic, the JS library this depends on always points the latest production WebSDK on cdn.onesignal.com.
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