FCM web push notifications

Website URL

(please specify the URL of the site on which you are experiencing the problem)
http://customercount.free.nf/?i=1

Error Message

(please share the FULL error message you see, if applicable)
window-listener.ts:29 Uncaught TypeError: Cannot read properties of undefined (reading ‘addEventListener’)
at Component.WindowMessagingFactory [as instanceFactory] (window-listener.ts:29:8)
at Provider.getOrInitializeService (provider.ts:318:33)
at Provider.getImmediate (provider.ts:115:21)
at getMessagingInWindow (api.ts:114:3)
at ?i=1:53:25
WindowMessagingFactory @ window-listener.ts:29
getOrInitializeService @ provider.ts:318
getImmediate @ provider.ts:115
getMessagingInWindow @ api.ts:114
(anonymous) @ ?i=1:53Understand this error
api.ts:61 Uncaught (in promise) FirebaseError: Messaging: This browser doesn’t support the API’s required to use the Firebase SDK. (messaging/unsupported-browser).
at api.ts:61:27

Other Information

is FCM web push notification allow in free hosting

Hi and welcome to the forum

Firebase Cloud Messaging is only supported on HTTPS websites. if your website does not use the HTTPS protocol you won’t be able to use FCM to deliver push notifications.

image

Try to install the certificate and then force HTTPS and see if there will be any new problems or if it will work

See more about certificates and other things in this category

4 Likes

thanks i will try and solve it

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.