Skip to content
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

Firebase not support on Chrome 69.0.3497.81 #1220

Closed
adeelibr opened this issue Sep 11, 2018 · 16 comments
Closed

Firebase not support on Chrome 69.0.3497.81 #1220

adeelibr opened this issue Sep 11, 2018 · 16 comments

Comments

@adeelibr
Copy link

Stack trace error:

code: "messaging/unsupported-browser"
message: "Messaging: This browser doesn't support the API's required to use the firebase SDK. (messaging/unsupported-browser)."
stack: "FirebaseError: Messaging: This browser doesn't support the API's required to use the firebase SDK.

Browser: Google Chrome
Version: Version 69.0.3497.81 (Official Build) (64-bit)
OS: Windows
Firebase SDK Version 5.4.
Firebase Product: Cloud Messaging

Steps To Reproduce:
Run any firebase app in the latest browser version of chrome.

@google-oss-bot
Copy link
Contributor

I found a few problems with this issue:

  • I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
  • This issue does not seem to follow the issue template. Make sure you provide all the required information.

@adeelibr
Copy link
Author

If there is any more information required from my end, let me know @for-anyone-who-reviews-this-issue. :)

@The-Don-Himself
Copy link

@adeelibr I'm not a maintainer but could it be that you are running it in Incognito mode? Chrome blocks many APIs while running in that mode, I think its unfortunate they do that, but it does explain the issue you are facing because for me, same environment as your Firebase works well in Chrome but not in Incognito.

@adeelibr
Copy link
Author

No, I am not running it in incognito mode. It still throws the error. I hope a maintainer can help me solve this issue.

@The-Don-Himself
Copy link

Ok, maybe try update Chrome to see if this error goes away, latest version is now 69.0.3497.92. Other than that, I'm out of ideas and sad I can't help you.

@The-Don-Himself
Copy link

The-Don-Himself commented Sep 14, 2018

Or look into disabling all Chrome extensions to see if one is affecting it. Or for advanced debugging, look into your Chrome internal flags or settings (which can mess things up further).
I have no doubt in my mind that this has to be an isolated case so getting help here might be very hard given that its most likely not an issue with Firebase. (otherwise there would be hundreds of complaints/issues).
All the best.

Edit : Or check Service worker restrictions. Without SSL or Localhost, Chrome blocks some APIs as well.

@The-Don-Himself
Copy link

@adeelibr Any news on this? Can you close it? The new GitHub layout always draws my attention to opened/commented issues so I'd love to close it :)

@adeelibr
Copy link
Author

@The-Don-Himself No, in the end I just had to wrap my firebase cloud messaging in try/catch it still throws the browser not supported in latest chrome version in stack trace. But at least my app doesn't crash any more.

@The-Don-Himself
Copy link

Very unfortunate. And this is on the domain localhost? Or live domain with SSL? I'd suggest you create a reproducible demo on jsfiddle or similar, so that people can share and take a look at it. Also try disabling all extensions. There is a Chrome flag for it. For example, when I'm not in the mood to deal with cors, I have a .bat file on Windows with this content.

start "" "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --unsafely-treat-insecure-origin-as-secure="http://127.0.0.1" --user-data-dir="c:/_chrome_dev" --disable-web-security

When I run that file, a totally new Chrome instance is started with those flags enabled. If you are on Windows, you can try that and let us know what happens.

@mmermerkaya
Copy link
Contributor

The code that checks if the browser has the necessary APIs is here. Can you make sure that you have all of these enabled?

Also you can use messaging.isSupported() to check if Messaging is supported, you don't need to use try/catch. Documentation here.

@Syed687
Copy link

Syed687 commented Sep 27, 2018

code: "messaging/unsupported-browser"
message: "Messaging: This browser doesn't support the API's required to use the firebase SDK. (messaging/unsupported-browser)."
stack: "FirebaseError: Messaging: This browser doesn't support the API's required to use the firebase SDK.
Browser: Google Chrome
Version: Version 69.0.3497.81 (Official Build) (64-bit)
OS: Windows
Firebase SDK Version 5.4.
Firebase Product: Cloud Messaging

Please help to resolve this isuue.

@Syed687
Copy link

Syed687 commented Sep 27, 2018

Got fix: The issue pops up only in Http, In Https no issues.

@mmermerkaya
Copy link
Contributor

@Syed687 That is because service workers are only available on HTTPS websites. There's nothing Firebase can do about that. This is also mentioned in our guide.

I'm closing this issue. If you face a similar problem in the future, feel free to reply here and I'll reopen the issue if needed.

@adeelibr
Copy link
Author

@The-Don-Himself thank you for your help,

It seems the issue was related to SSL, pointed out by @Syed687

@mmermerkaya thank you for looking into it.

@tyagip966
Copy link

Runtime Error
Uncaught (in promise): FirebaseError: Messaging: This browser doesn't support the API's required to use the firebase SDK.

I found this error when I build the ionic application and run it on my mobile the application is blank but when I debug the application then above message is come

@mmermerkaya
Copy link
Contributor

@tyagip966 Sounds like your issue is unrelated to this one. Please create a new issue.

@firebase firebase locked as resolved and limited conversation to collaborators Dec 20, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

7 participants