-
Notifications
You must be signed in to change notification settings - Fork 930
fetch is not a function #75
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
Comments
Hmmm this issue does not seem to follow the issue template. Make sure you provide all the required information. |
It seems like there should be a check for the Fetch API here. Either that, or use a polyfill like this one maybe? |
@skstronghold On which browser are you seeing this behavior? Messaging only supports browsers that support service worker (see https://firebase.google.com/docs/cloud-messaging/js/client) so I'd be curious if this isn't a browser issue. That said, @jsayol is probably right that we should add that check. |
The SDK should perform an additional check here:
|
We have merged #79 at it will go out in the next release. Thanks for the issue @skstronghold! |
Describe your environment
Describe the problem
Firebase messaging doesn't work with latest npm package. It throws:
Exact line in code is here
Steps to reproduce:
Install latest firebase package from npm. Follow tutorial given here.
Relevant Code:
The text was updated successfully, but these errors were encountered: