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
Versão 122.0.6261.94 (Official Build, ungoogled-chromium) 64 bits
Firebase SDK Version
^10.12.0
Firebase SDK Product:
Messaging
Describe your project's tooling
JavaScript, PHP, PNPM
Describe the problem
The getToken method is called but does never returns an result from the async result. This only happens on Ungoogled Chromium browser, but not other browsers like Edge or Firefox.
Steps and code to reproduce issue
I'm running this code as an module on the website running at an HTTPs localhost endpoint. The service worker file is present.
import{initializeApp}from"firebase/app";import{getMessaging,getToken}from"firebase/messaging";constfirebaseConfig={;};initializeApp(firebaseConfig);constmessaging=getMessaging();window.initNotificationService=()=>{Notification.requestPermission().then(permission=>{if(permission=='granted'){console.log("perm granted");getToken(messaging,{vapidKey: '...'}).then((currentToken)=>{if(currentToken){console.log(currentToken);}else{// Show permission request UIconsole.log('No registration token available. Request permission to generate one.');// ...}}).catch((err)=>{console.log('An error occurred while retrieving token. ',err);// ...});}});};
Edge:
Firefox:
Ungoogled Chromium:
The text was updated successfully, but these errors were encountered:
It sounds like the Ungoogled Chromium implementation purposefully doesn't provide the fundamental support for what the Messaging implementation requires from a web browser. Is that your understanding as well?
Yes, as discussed in ungoogled-software/ungoogled-chromium#2867, we concluded that the issue is an expected behavior just because the unchromium doens't listen to google push services.
Operating System
Windows 10
Browser Version
Versão 122.0.6261.94 (Official Build, ungoogled-chromium) 64 bits
Firebase SDK Version
^10.12.0
Firebase SDK Product:
Messaging
Describe your project's tooling
JavaScript, PHP, PNPM
Describe the problem
The
getToken
method is called but does never returns an result from the async result. This only happens on Ungoogled Chromium browser, but not other browsers like Edge or Firefox.Steps and code to reproduce issue
I'm running this code as an module on the website running at an HTTPs localhost endpoint. The service worker file is present.
Edge:
Firefox:
Ungoogled Chromium:
The text was updated successfully, but these errors were encountered: