AXEH: LONG LIVE LEATERS Недоступны. < /P>
< /blockquote>
Вход работает правильно на эмуляторе Android, но не на производственных версиях на физических устройствах. Сертификаты для подписания приложения, как в хранилище ключей, так и в Cloud Console Google. /> < /li>
Я проверил, что мой client_id в Google соответствует одному в облачной консоли Google.const loginWithGoogle = async (): Promise => {
try {
let idToken: string | null = null;
let email: string | null = null;
let name: string | null = null;
let picture: string | null = null;
if (Capacitor.isNativePlatform()) {
//
const result = await FirebaseAuthentication.signInWithGoogle();
if (!result || !result.user || !result.credential?.idToken) {
throw new Error("Errore durante il login con Google.");
}
idToken = result.credential.idToken;
email = result.user.email;
name = result.user.displayName;
picture = result.user.photoUrl;
console.log("
} else {
//
const result = await signInWithPopup(auth, googleProvider);
if (!result.user) {
throw new Error("Google Sign-In fallito.");
}
idToken = await result.user.getIdToken();
email = result.user.email;
name = result.user.displayName;
picture = result.user.photoURL;
}
Подробнее здесь: https://stackoverflow.com/questions/796 ... -bad-authe