I'm trying to log in with email and password with angular, when I call the service to log in, I get the following error:

This is my firebase.nativescript:
{
"external_push_client_only": false,
"using_ios": true,
"using_android": true,
"analytics": false,
"firestore": true,
"realtimedb": false,
"authentication": true,
"remote_config": false,
"performance_monitoring": false,
"messaging": false,
"in_app_messaging": false,
"crashlytics": false,
"storage": false,
"functions": false,
"facebook_auth": false,
"google_auth": false,
"admob": false,
"dynamic_links": false,
"ml_kit": false
}
And i used plugin version 10.0.2
Did you just update to the latest version? If so, remove node_modules and platforms please. Otherwise share the bit from ‘adb logcat’ with this error.
no, remove node_modules and the platforms folder, reinstall with npm install, this didn't work.
I started a project from 0, I followed the Authentication documentation and I get the same error.
i used the next code
Auth Service

app.component.ts // main Component of the project

This is the login component

I'm using lazyloading, and then I'll implement AuthGuard.
This is the mistake I have now.
I know that Firebase already initialized, is solved by moving firebase.init to the main.ts
firebase.init error: Firebase already initialized
LOG from device P20 Luis Sarmiento : Error in firebase.login: TypeError: Cannot read property 'FirebaseAuth' of undefined
LOG from device P20 Luis Sarmiento : ERROR Error: Uncaught (in promise): Object: {"code":"auth/exception","message":"TypeError: Cannot read property 'FirebaseAuth' of undefined"
Hi,
I ceated a PR that solves this issue.
@LuisSarmientoM as a workaround you can enable analytics in the json.
However I don't know if that gives any negative side effect.
Seems like still having this issue. @JohanBeumer unfortunately enabling analytics in the json doesn't work for me. :(
It was worked perfectly with version 6.0.2. But when it comes to 10.3.3 not working
Does anyone have a solution?
@wowatarasov Which version of plugin you are using? I have tested it on latest (v10.5.0), it works on both iOS & Android. Try running a clean build, make sure you enabled authentication in the firebase JSON file.
Seems like still having this issue @EddyVerbruggen and enabling analytics in the json doesn't work for me
@kikushi I was able to authenticate app on Android with analytics enabled. If you still have issues, please share a sample project.
TNS Runtime: 6.4.1
Plugin version: 10.5.0
Most helpful comment
Hi,
I ceated a PR that solves this issue.
@LuisSarmientoM as a workaround you can enable analytics in the json.
However I don't know if that gives any negative side effect.