EddyVerbruggen / nativescript-plugin-firebase

:fire: NativeScript plugin for Firebase
https://firebase.google.com
MIT License
1.01k stars 448 forks source link

NS 7.0.8 + @nativescript/firebase 11.0.0-rc.6 authentication problem (Android) #1667

Closed Klunk75 closed 3 years ago

Klunk75 commented 3 years ago

Hi, cannot authenticate in Firebase using plugin @nativescript/firebase 11.0.0-rc.6 with NS 7.0.8 on ANDROID (Angular project). When trying to login (with any method... anonymous, email/password/Google Login), I get this error: Error in firebase.login: TypeError: Cannot set property 'resolve' of undefined On IOS it's working with no problems. I tryed on macOS and on Windows, same result.

Steps to reproduce: create a new blank NG project, using the new template "@nativescript/template-blank-ng" version 7.0.2, add Firebase init code as explained in the plugin page, add "google-services.json" downloaded from Firebase console, add a button and assign to it a Firebase login function (for example the Anonymous login). See the result on output console: Error in firebase.login: TypeError: Cannot set property 'resolve' of undefined

Here is my package.json file:

{ "name": "@nativescript/template-hello-world-ng", "main": "main.js", "version": "7.0.0", "author": "NativeScript Team oss@nativescript.org", "description": "NativeScript Application", "license": "SEE LICENSE IN ", "publishConfig": { "access": "public" }, "keywords": [ "nativescript", "mobile", "angular", "{N}", "template" ], "repository": "", "bugs": { "url": "https://github.com/NativeScript/NativeScript/issues" }, "scripts": { "ngcc": "ngcc --properties es2015 module main --first-only", "postinstall": "npm run ngcc" }, "dependencies": { "@angular/animations": "10.1.1", "@angular/common": "10.1.1", "@angular/compiler": "10.1.1", "@angular/core": "10.1.1", "@angular/forms": "10.1.1", "@angular/platform-browser": "10.1.1", "@angular/platform-browser-dynamic": "10.1.1", "@angular/router": "10.1.1", "@nativescript/angular": "10.1.0", "@nativescript/core": "7.0.3", "@nativescript/firebase": "rc", "@nativescript/theme": "2.3.3", "reflect-metadata": "0.1.13", "rxjs": "6.6.3", "zone.js": "0.11.1" }, "devDependencies": { "@angular/compiler-cli": "10.1.1", "@nativescript/android": "7.0.0", "@nativescript/types": "7.0.3", "@nativescript/webpack": "3.0.4", "@ngtools/webpack": "10.1.1", "typescript": "3.9.7" }, "gitHead": "9905b5001bf6c07e1bb26e84c4bcc62db11181dc", "private": "true", "readme": "NativeScript Application" }

Anybody else having this issue?

Regards, Paolo

Klunk75 commented 3 years ago

Fixed in RC7.

https://github.com/EddyVerbruggen/nativescript-plugin-firebase/pull/1640/commits/fcc9071f664273561ea771ad7edac96290f510ec