React Native Firebase
    Preparing search index...
    • Specify a user identifier which will be visible in the Firebase Crashlytics console.

      It is recommended for privacy purposes that this value be a value that's meaningless to a third-party observer; such as an arbitrary string that ties an end-user to a record in your system e.g. a database record id.

      const auth = getAuth();
      const crashlytics = getCrashlytics();
      // Custom user id
      await setUserId(crashlytics, '123456789');
      // Firebase auth uid
      await setUserId(
      crashlytics,
      auth.currentUser.uid
      );

      Parameters

      • crashlytics: Crashlytics

        A crashlytics instance.

      • userId: string

        An arbitrary string that ties an end-user to a record in your system e.g. a database record id.

      Returns Promise<null>