Firebase-plugin. How to apply fingerprint? (It's a hard pain)

plugins

#1
  • I have installed the nativescript-firebase-plugin.

  • I choose Google authentication when installing.

  • Then I go to Firebase console > Authentication > SIGN-IN METHOD > Google, and set it Enable.

  • After it, I generate a keystore: keytool -genkey -v -keystore myapp.keystore -alias myapp -keyalg RSA -keysize 2048 -validity 100000

  • With that keystore I have generated a SHA1 fingerprint using: keytool -list -v -keystore myapp.keystore -alias myapp -storepass android -keypass android

  • I copied the result, then go to my firebase console > General > Choose my android app > Add fingerprint > Paste the sha1 > SAVE.

  • After it, I downloaded the updated google-services.json, and copy it inside myapp\app\App_Resources\Android

  • Execute $tns run android.

  • Tried to login with Google using the plugin sample code:

firebase.login({
type: firebase.LoginType.GOOGLE
}).then(
function(result) {
alert(JSON.stringify(result));
},
function(errorMessage) {
alert(errorMessage);
}
);

  • In that moment a Google popup appears, letting me choose an account. Once I choose an account, the popup closes, automatically back to my app. Without alerts, errors, crashes, nothing… When I check in the users panel in my firebase console, nothing was added.

NOTE: The plugin works well with email and anonymous auth.

HELP PLEASE!!! :frowning: