Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

220
Vistas
React Native connecting with firebase Error : " Please provide the appropriate client ID "

Error: Please provide the appropriate client ID

First I have created a firebase project, then I have created two apps(Android and iOS). After the creation of Android I have installed .json file, then after building the apk, from the command "expo fetch:android:hashes", I just got Google Certificate Hash (SHA-256) where I put in the fingerprint in the Google App. With the IOS I have downloaded the .plist file after the creation of the app.

Code:

const config = {
  androidClientId:
    "//ID from client_id of the google json file",
  iosClientId:
     "//ID from string of the google plist file",
  scopes: ["profile", "email"],
  permissions: ["public_profile", "email", "gender", "location"],
};

export const AuthProvider = ({ children }) => {
  const signInWithGoogle = async () => {
    await Google.logInAsync(config).then(async (loginResults) => {
      if (loginResults.type === "success") {
        //success
      }
    });
  };

  return (
    <AuthContext.Provider
      value={{
        user: null,
        signInWithGoogle,
      }}
    >
      {children}
    </AuthContext.Provider>
  );
};

export default function useAuth() {
  return useContext(AuthContext);
}

APP.js

const { signInWithGoogle } = useAuth();

  return (
    <View>
      <Button title="Login" onPress={signInWithGoogle} />
    </View>
  );

No google modal opens after this just prints out the client id error

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda