firebase-js-sdk icon indicating copy to clipboard operation
firebase-js-sdk copied to clipboard

FirebaseError: Installations: Firebase Installation is not registered. (installations/not-registered).

Open DevSpareChange opened this issue 1 year ago • 4 comments

Operating System

17.0.3

Browser Version

unknown

Firebase SDK Version

9.23.0

Firebase SDK Product:

Analytics, Installations, Messaging, Remote-Config

Describe your project's tooling

React App with Webpack and Jest

Describe the problem

I have my react app running in a mobile context within a native app on both iOS and android and often receive this error in my sentry. What may cause this issue and how may this be resolved? This error occurs on both platforms

Steps and code to reproduce issue

unknown

DevSpareChange avatar Jan 29 '24 14:01 DevSpareChange

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

google-oss-bot avatar Jan 29 '24 14:01 google-oss-bot

Error is thrown here: https://github.com/firebase/firebase-js-sdk/blob/dc11a27618819396944368f421dcbcb62c395f07/packages/installations/src/helpers/refresh-auth-token.ts#L49

Comment on the function indicates this function should only be called if the installation is registered, and the 2 calls that I see seem to check for that, maybe one of the checks is buggy, or maybe there is a race condition.

hsubox76 avatar Jan 31 '24 20:01 hsubox76

Hey @DevSpareChange. 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!

google-oss-bot avatar Feb 12 '24 02:02 google-oss-bot

The only thing we really do is calling initializeApp at the beginning of our React App.

initializeApp(
    {
      apiKey: window.ENV.firebase_api_key,
      authDomain: window.ENV.firebase_auth_domain,
      projectId: window.ENV.firebase_project_id,
      storageBucket: window.ENV.firebase_storage_bucket,
      messagingSenderId: window.ENV.firebase_message_sender_id,
      appId: window.ENV.firebase_app_id,
      measurementId: window.ENV.firebase_measurement_id
    },
    { automaticDataCollectionEnabled: false }
  );

DevSpareChange avatar Feb 14 '24 08:02 DevSpareChange

Does the error occur when initializing a particiular Firebase SDK package?

DellaBitta avatar Apr 04 '24 21:04 DellaBitta

Hey @DevSpareChange. 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!

google-oss-bot avatar Apr 11 '24 01:04 google-oss-bot

Since there haven't been any recent updates here, I am going to close this issue.

@DevSpareChange if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.

google-oss-bot avatar Apr 17 '24 01:04 google-oss-bot