I tried to release an APK that is using Firebase Phone Auth on Google Play Store. Everything works just fine on DEBUG and PROFILE mode. But when I put it on RELEASE mode on play store here comes the problem:
What you see above is the log generated by my APK showing that it fails immediately when method verifyPhoneNumber()
called. It only gives message [firebase_auth/null] null
without any further explanation.
I already tried all answer in the following threads:
- Firebase Phone Auth not working in APK Release mode
- Firebase Phone Auth not working in release build
- Firebase Authentication Not working in signed APK
- SHA-1 fingerprint of keystore certificate
And unfortunately none of those solve my problem.
For your information, here's my flutter doctor and part of pubspec yaml.
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 1.22.5, on Mac OS X 10.15.7 19H2 darwin-x64, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 12.2)
[!] Android Studio (version 4.1)
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
[✓] VS Code (version 1.53.2)
[✓] Connected device (2 available)
pubspec.yaml
firebase_core: ^0.5.3
firebase_auth: ^0.18.4+1
firebase_analytics: ^6.3.0
firebase_messaging: ^7.0.3
Please masters help me! Thank you.