Description
I have implemented Firebase Authentication in my React Native app. While the integration works correctly on most devices, I’m encountering an issue on devices running Android 13, 14, and 15 for the past 1 week and before that it is working fine. Specifically, authentication fails when attempting to register new users.
The authentication process works as expected on devices running Android 10, 11, 12, 13 (some), and the latest Android 16. Additionally, test users that were manually created in the Firebase Console can log in successfully on all devices, so the issue seems isolated to new user registration on Android 13, 14, and 15.
When attempting to register a new user, I receive the following error:
Error sending OTP: [auth/app-not-authorized] This app is not authorized to use Firebase Authentication. Please verify that the correct package name, SHA-1, and SHA-256 are configured in the Firebase Console. [Invalid PlayIntegrity token; does not pass basic integrity.]
I have verified that the package name, SHA-1, and SHA-256 keys are correctly configured in the Firebase Console.
Here are the versions I’m currently using:
react-native: 0.76.2
@react-native-firebase/auth: ^21.11.0
@react-native-firebase/messaging: ^21.12.2
I would appreciate any insights or guidance on how to resolve this issue, particularly around the Play Integrity-related error.