-
Notifications
You must be signed in to change notification settings - Fork 115
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
[Bug]: Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'message') #1106
Comments
@ndarproj Thanks for reporting. The error isn't clear here but this due to the v16 SDK no longer supporting sites that are HTTP or use the os.tc domain. This change is part of the v16 release notes release notes. You will need configure OneSignal to use your own HTTPS domain on the dashboard to switch to the OneSignal v16 SDK. We will be making an update to the OneSignal SDK to provide a better error to make this requirement more clear. |
My website is HTTPS hosted on Vercel and I am getting this same exact error as well. |
I'm trying to debug my app on the localhost. since v16 requires https domain, how should we work on the localhost? i have followed the local testing instructions on documentation btw |
@softwareonair You can enable the "LOCAL TESTING" when you use a url that start with Note that http is limited to localhost as a secure context is required for service workers which is required for push. If you need to test a different URL it must start with https:// |
I was facing this issue on a domain that uses HTTPS (in production)... It seems we must disable the os.tc feature in the app config and rename OneSignalSDK.sw.js to OneSignalSDKWorker.js. It seems that the docs are too outdated or misleading... |
What happened?
I am using the latest version of laravel which is Laravel v10.24.0 (PHP v8.1.10) and i am getting an error
i have this code on head
What browsers are you seeing the problem on?
Firefox, Chrome (Chromium), Brave
What operating system are you running?
Windows 10
Steps to reproduce?
What did you expect to happen?
The notification bell button would appear on my lower left corner
Relevant log output
No response
The text was updated successfully, but these errors were encountered: