-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Open
Labels
blocked: customer-responseplatform: androidplugin: authenticationFirebase AuthenticationFirebase Authenticationtype: bugNew bug reportNew bug report
Description
Issue
After upgrading my app to react-native > 0.76 when I'm sending otp (signInWithPhoneNumber
) as the otp message received by the phone the app crashes.
It happens only on Android
This is the error I see when I open the logcat:
java.lang.RuntimeException: Error receiving broadcast Intent { act=com.google.android.gms.auth.api.phone.SMS_RETRIEVED flg=0x200010 pkg=com.benny.test (has extras) } in com.google.android.gms.internal.firebase-auth-api.zzafy@d170272
Project Files
Javascript
Click To Expand
package.json
:
{
"name": "projectname",
"main": "expo-router/entry",
"version": "1.0.0",
"scripts": {
"start": "expo start",
"reset-project": "node ./scripts/reset-project.js",
"build:development:android": "eas build --profile development --platform android",
"build:development:android:local": "eas build --profile development --platform android --local",
"build:production:android": "eas build --profile production --platform android",
"build:production:android:local": "eas build --profile production --platform android --local",
"build:development:ios": "eas build --profile development --platform ios",
"build:development:ios:local": "eas build --profile development --platform ios --local",
"build:production:ios": "eas build --profile production --platform ios",
"build:production:ios:local": "eas build --profile production --platform ios --local",
"android": "expo start --android",
"ios": "expo start --ios",
"web": "expo start --web",
"test": "jest --watchAll",
"lint": "expo lint"
},
"jest": {
"preset": "jest-expo"
},
"dependencies": {
"@eabdullazyanov/react-native-sms-user-consent": "^1.2.1",
"@expo/vector-icons": "^14.1.0",
"@google-cloud/recaptcha-enterprise-react-native": "18.7.1",
"@react-native-async-storage/async-storage": "2.1.2",
"@react-native-firebase/app": "^22.2.0",
"@react-native-firebase/app-check": "^22.2.0",
"@react-native-firebase/auth": "^22.2.0",
"@react-native-firebase/firestore": "^22.2.0",
"@react-native-firebase/functions": "^22.2.0",
"@react-native-firebase/messaging": "^22.2.0",
"@react-native-firebase/storage": "^22.2.0",
"@reduxjs/toolkit": "^2.5.1",
"expo": "^53.0.9",
"expo-application": "~6.1.4",
"expo-blur": "~14.1.4",
"expo-build-properties": "~0.14.6",
"expo-constants": "~17.1.6",
"expo-dev-client": "~5.1.8",
"expo-device": "~7.1.4",
"expo-font": "~13.3.1",
"expo-haptics": "~14.1.4",
"expo-image": "~2.1.7",
"expo-linear-gradient": "~14.1.4",
"expo-linking": "~7.1.5",
"expo-localization": "~16.1.5",
"expo-location": "~18.1.5",
"expo-network": "~7.1.5",
"expo-notifications": "~0.31.2",
"expo-router": "~5.0.7",
"expo-splash-screen": "~0.30.8",
"expo-status-bar": "~2.2.3",
"expo-symbols": "~0.4.4",
"expo-system-ui": "~5.0.7",
"expo-updates": "~0.28.13",
"expo-web-browser": "~14.1.6",
"lottie-react-native": "7.2.2",
"moment": "^2.30.1",
"react": "19.0.0",
"react-dom": "19.0.0",
"react-native": "0.79.2",
"react-native-bootsplash": "^6.3.7",
"react-native-calendars": "^1.1310.0",
"react-native-gesture-handler": "~2.24.0",
"react-native-keyboard-controller": "^1.16.8",
"react-native-reanimated": "~3.17.4",
"react-native-safe-area-context": "5.4.0",
"react-native-screens": "~4.11.1",
"react-native-web": "^0.20.0",
"react-native-webview": "13.13.5",
"react-redux": "^9.2.0"
},
"devDependencies": {
"@babel/core": "^7.25.2",
"@expo/ngrok": "^4.1.3",
"@types/jest": "^29.5.12",
"@types/react": "~19.0.10",
"@types/react-test-renderer": "^18.3.0",
"jest": "^29.2.1",
"jest-expo": "~53.0.5",
"react-test-renderer": "18.3.1",
"typescript": "~5.8.3"
},
"expo": {
"autolinking": {
"exclude": [
"expo-splash-screen"
]
}
},
"private": true,
"packageManager": "[email protected]+sha1.4ba7fc5c6e704fce2066ecbfb0b0d8976fe62447"
}
firebase.json
for react-native-firebase v6:
# N/A
iOS
Click To Expand
ios/Podfile
:
- I'm not using Pods
- I'm using Pods and my Podfile looks like:
# N/A
AppDelegate.m
:
// N/A
Android
Click To Expand
Have you converted to AndroidX?
- my application is an AndroidX application?
- I am using
android/gradle.settings
jetifier=true
for Android compatibility? - I am using the NPM package
jetifier
for react-native compatibility?
android/build.gradle
:
// N/A
android/app/build.gradle
:
// N/A
android/settings.gradle
:
// N/A
MainApplication.java
:
// N/A
AndroidManifest.xml
:
<!-- N/A -->
Environment
Click To Expand
react-native info
output:
System:
OS: macOS 15.4
CPU: (8) arm64 Apple M2
Memory: 191.94 MB / 16.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 22.14.0
path: /usr/local/bin/node
Yarn:
version: 1.22.22
path: /opt/homebrew/bin/yarn
npm:
version: 10.9.2
path: /usr/local/bin/npm
Watchman:
version: 2025.05.26.00
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods:
version: 1.16.2
path: /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 24.5
- iOS 18.5
- macOS 15.5
- tvOS 18.5
- visionOS 2.5
- watchOS 11.5
Android SDK: Not Found
IDEs:
Android Studio: 2024.3 AI-243.24978.46.2431.13208083
Xcode:
version: 16.4/16F6
path: /usr/bin/xcodebuild
Languages:
Java:
version: 17.0.14
path: /usr/bin/javac
Ruby:
version: 2.6.10
path: /usr/bin/ruby
npmPackages:
"@react-native-community/cli": Not Found
react:
installed: 19.0.0
wanted: 19.0.0
react-native:
installed: 0.79.2
wanted: 0.79.2
react-native-macos: Not Found
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: Not found
newArchEnabled: Not found
iOS:
hermesEnabled: Not found
newArchEnabled: Not found
- Platform that you're experiencing the issue on:
- iOS
- Android
- iOS but have not tested behavior on Android
- Android but have not tested behavior on iOS
- Both
react-native-firebase
version you're using that has this issue:22.2.0
Firebase
module(s) you're using that has the issue:Auth
- Are you using
TypeScript
?N
- 👉 Check out
React Native Firebase
andInvertase
on Twitter for updates on the library.
Metadata
Metadata
Assignees
Labels
blocked: customer-responseplatform: androidplugin: authenticationFirebase AuthenticationFirebase Authenticationtype: bugNew bug reportNew bug report