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

all iOS: Messaging: This browser doesn't support the API's required to use the Firebase SDK. (messaging/unsupported-browser). #8760

Open
mislavmiocevic opened this issue Feb 5, 2025 · 5 comments

Comments

@mislavmiocevic
Copy link

Operating System

iOS

Environment (if applicable)

Mobile Safari, Chrome Mobile iOS, Safari

Firebase SDK Version

10.12.2

Firebase SDK Product(s)

Messaging

Project Tooling

Next.js 14.2.13

Detailed Problem Description

These screenshots are logs from Bugsnag. As you can see, any iOS gives us this warning. Does firebase-js-sdk work on iOS?

Also, the app is using https and there is a SSL certificate (I am noting this since I read some threads discussing this, so we can exclude that).

Image Image

Steps and code to reproduce issue

Access the app with iOS device.

@mislavmiocevic mislavmiocevic added new A new issue that hasn't be categoirzed as question, bug or feature request question labels Feb 5, 2025
@google-oss-bot
Copy link
Contributor

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

@jbalidiong jbalidiong added api: messaging needs-attention and removed needs-triage new A new issue that hasn't be categoirzed as question, bug or feature request labels Feb 5, 2025
@dlarocque
Copy link
Contributor

Hi @mislavmiocevic, FCM is supported on modern mobile browsers.

This error messaging/unsupported-browser is thrown if any of the required APIs are unavailable in the users' browser. These APIs include:

  • IndexedDB
  • Service Workers
  • Push Manager
  • Notifications
  • Cookies
  • Fetch
  • DOM

A users' device may have a modern browser without one of these APIs enabled for various reasons. For example, if they have security or privacy settings that block cookies or IndexedDB, FCM will not be able to work.

If all of these APIs are available, and this error is still thrown, it is definitely a bug.

@google-oss-bot
Copy link
Contributor

Hey @mislavmiocevic. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

@comxd
Copy link

comxd commented Feb 17, 2025

I think with iOS, Web Push notifications are only available for PWA (home screen apps).

@google-oss-bot
Copy link
Contributor

Hey @mislavmiocevic. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants