Firebase Authentication Error: Missing Valid App Identifier

I’m encountering an issue with Firebase Authentication in my Android application. Whenever I attempt to verify a phone number using Firebase Authentication, I receive the following error message:

This request is missing a valid app identifier, meaning that Play Integrity checks, and reCAPTCHA checks were unsuccessful.

I’ve thoroughly reviewed and implemented all necessary configurations, including proper integration of reCAPTCHA.
I’ve ensured that my project settings on the Firebase Console are correctly configured.
I’ve reviewed the source code related to phone authentication and verified the correct implementation of reCAPTCHA token passing.
Despite these efforts, the issue persists, and I’m unable to proceed with phone number verification in my application.

My code Java

private void startPhoneNumberVerification(String phoneNumber) {
Log.d(“PhoneNumberVerification”, “Iniciando verificação do número de telefone: ” + phoneNumber); // Log de depuração adicionado
PhoneAuthOptions options =
PhoneAuthOptions.newBuilder(firebaseAuth)
.setPhoneNumber(phoneNumber) // Número de telefone a ser verificado
.setTimeout(60L, TimeUnit.SECONDS) // Tempo limite da solicitação de verificação
.setActivity(this) // Atividade que iniciará a solicitação
.setCallbacks(new PhoneAuthProvider.OnVerificationStateChangedCallbacks() {
@Override
public void onVerificationCompleted(PhoneAuthCredential phoneAuthCredential) {
signInWithPhoneAuthCredential(phoneAuthCredential);
}

                        @Override
                        public void onVerificationFailed(FirebaseException e) {
                            Log.e("PhoneNumberVerification", "Falha na verificação do número de telefone", e); // Log de erro adicionado
                            Toast.makeText(Register.this, "Falha ao verificar o número de telefone", Toast.LENGTH_SHORT).show();
                        }

                        @Override
                        public void onCodeSent(String s, PhoneAuthProvider.ForceResendingToken forceResendingToken) {
                            super.onCodeSent(s, forceResendingToken);
                            verificationId = s;
                            Log.d("PhoneNumberVerification", "Código de verificação enviado com sucesso: " + verificationId); // Log de depuração adicionado
                            // Navega para a atividade OTPVerification para inserir o código de verificação
                            Intent intent = new Intent(Register.this, OTPVerification.class);
                            intent.putExtra("verificationId", verificationId);
                            startActivity(intent);
                        }
                    })
                    // Você pode adicionar outras configurações, como token reCAPTCHA, se necessário
                    .build();

    // Inicie o processo de verificação do número de telefone com as opções configuradas
    PhoneAuthProvider.verifyPhoneNumber(options);
}

I attempted to verify a phone number using Firebase Authentication in my Android app. I expected the verification to be successful and for the user to proceed to the next step of the registration process. However, I received the error “This request is missing a valid app identifier,” indicating that the Play Integrity checks and reCAPTCHA checks were unsuccessful.

New contributor

Matheus SIlva is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật