Skip to content

Registration failed - push service error #7800

@nandinicbit1981

Description

@nandinicbit1981

Operating System

macOS sonoma 14.1.1

Browser Version

Chrome 119

Firebase SDK Version

@react-native-firebase/messaging - 18.3.0

Firebase SDK Product:

Messaging

Describe your project's tooling

React native web app

Describe the problem

We started noticing this error "Registration failed - push service error" when requesting getToken from firebase. This issue started happening without any code changes from our side. The issue only happens with some users.

I have looked into this thread and confirm that creating/testing on a new profile fixes the issue. However, I would like to know if there is any way of fixing this issue for our users who are already experiencing this. It doesn't make sense to ask our users to create a new chrome profile to fix the issue for them.

Steps and code to reproduce issue

This is the code that is causing the error -

const token = await getToken(getMessaging(), { vapidKey: process.env.WEB_FIREBASE_VAPID_KEY, serviceWorkerRegistration: registration, });

This issue happens randomly so i am not sure what are the exact steps to reproduce. However, according to this thread it will happen if we register too many times.

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