OneSignal-Website-SDK icon indicating copy to clipboard operation
OneSignal-Website-SDK copied to clipboard

[Bug]: Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'message')

Open ndarproj opened this issue 9 months ago • 5 comments

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

    <script src="https://cdn.onesignal.com/sdks/web/v16/OneSignalSDK.page.js" defer></script>
    <script>
        window.OneSignalDeferred = window.OneSignalDeferred || [];
        OneSignalDeferred.push(function(OneSignal) {
            OneSignal.init({
                appId: "d7c7e6bb-81a3-4d18-90b8-e99ffb3d3b4f",
            });
        });
    </script>

onesignal2 onesignal

What browsers are you seeing the problem on?

Firefox, Chrome (Chromium), Brave

What operating system are you running?

Windows 10

Steps to reproduce?

1. Setup Web Platform w/ localhost:8000 as site url
2. Run Laravel php artisan serve
3. Go to localhost:8000

What did you expect to happen?

The notification bell button would appear on my lower left corner

Relevant log output

No response

ndarproj avatar Sep 21 '23 04:09 ndarproj