Comments (12)
Did you enable email/password authentication in your Firebase console?
from nativescript-plugin-firebase.
from nativescript-plugin-firebase.
@EddyVerbruggen its my first time using this new firebase console. But it seems activated
from nativescript-plugin-firebase.
It does indeed - what's the errorMessage
in the popup you see after createUser
fails?
from nativescript-plugin-firebase.
from nativescript-plugin-firebase.
I was also getting the same error. In my case the issue was I was entering password as "test", and due to that firebase was returning FirebaseAuthWeakPasswordException (firebase excepts at-least 6 character password.)
Similarly firebase will also throw an exception, if email is malformed or user with the email is already exists.
You can check the proper error by doing below changes in firebase.android.js
file.
Inside createUser
method, instead of returning message Creating a user failed, we can send message like Creating a user failed + task.getException().getReason() as shown below.
var onCompleteListener = new com.google.android.gms.tasks.OnCompleteListener({
onComplete: function (task) {
if (!task.isSuccessful() && task.getException()) {
reject("Creating a user failed. " + (task.getException().getReason ? task.getException().getReason() : task.getException()));
} else {
// the AuthStateListener.onAuthStateChanged callback will resolve the promise
}
}
});
For reference: https://firebase.google.com/docs/reference/android/com/google/firebase/auth/FirebaseAuth#public-methods
It will be great if we can accommodate this change in the plugin. So it will be very useful to other users also.
from nativescript-plugin-firebase.
Thanks, added something similar in my current dev version, will land in the next release.
from nativescript-plugin-firebase.
Why closing this? Firebase has 8 letters. Why would that happen for me? @EddyVerbruggen
from nativescript-plugin-firebase.
Better to ask the creator of the SDK - if they think 'Firebase' is not a strong password for a Firebase user then that's on them, right? This issue was about exposing the error to the plugin dev which will be done in the next release.
from nativescript-plugin-firebase.
@EddyVerbruggen yeah! makes sense. thanks
from nativescript-plugin-firebase.
@cescoferraro did you ever get past this by changing password to something stronger?
I'm encountering same thing with a password that is def more than 6 characters and should be consider strong... What ended up working for you. I still see this error when trying to use createUser
:
Error Domain=FIRAuthErrorDomain Code=17999 "An internal error has occurred, print and inspect the error details for more information." UserInfo={error_name=ERROR_INTERNAL_ERROR, NSUnderlyingError=0x7e62b130 {Error Domain=FIRAuthInternalErrorDomain Code=2 "(null)"}, NSLocalizedDescription=An internal error has occurred, print and inspect the error details for more information.}
from nativescript-plugin-firebase.
Nvm, it all sudden started working, so strange. Ok all good here 👍
from nativescript-plugin-firebase.
Related Issues (20)
- M1 Issue - FirebaseSDK HOT 4
- Several "session_start" event are created on iOS 15 HOT 1
- ERROR TypeError: firebase.init is not a function.
- AdMob error: TypeError: Cannot set property 'resolve' of undefined
- Class constructor ContentView cannot be invoked without 'new'
- Android App Not working with NS 8.2. HOT 42
- A problem occurred configuring root project 'firebase'.
- microsoft login
- Android 12 background notification led to crash (PendingIntent) HOT 6
- Unable to run new deployment HOT 1
- ion
- Error trying to install @nativescript/firebase
- barcode scanning issue - iPhone 13 Pro and iPhone 13 Pro max
- Cannot read property 'ads' of undefined on NativeScript 8.2.3 HOT 1
- Plugin with id 'com.google.gms.google-services' not found. HOT 13
- SetValue of type Date Error on iOS
- Barcode Scanning issue on native script 8 with native camera control
- Mark this repository as deprecated HOT 1
- Firebase Authentication functions are giving error "No reference found.
- Firebase Messaging crash issue in Android 13 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nativescript-plugin-firebase.