Skip to content

FR: Better error message for using FCM with http #7885

@marcusx2

Description

@marcusx2

Operating System

macOS 13.6.1

Browser Version

Safari 17.1

Firebase SDK Version

10.7.0

Firebase SDK Product:

Messaging

Describe your project's tooling

index.html with source tag. Just javascript.

Describe the problem

When using the cloud messaging api with http instead of https, the following error is thrown

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

However, I think this error is misleading. Even though the browser supports the api, the real issue is that http protocol is being used instead of https. I request that a specific error for using the wrong protocol be raised instead.

Steps and code to reproduce issue

Already described.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions