I've added version 4.0.4 of the Nativescript firebase plugin but I can't seem to get the Google authentication to work. Here are the steps I've taken:
Generate the keystore file with the following commands:
keytool -genkey -v -keystore debug.keystore -alias audibledebugkey -keyalg RSA -keysize 2048 -validity 10000
keytool -genkey -v -keystore prod.keystore -alias audibleprodkey -keyalg RSA -keysize 2048 -validity 10000
I've stored these files in the project directory in the .keystore directory. I got the SHA1 and SHA256 using these commands:
keytool -list -v -keystore prod.keystore -alias audibleprodkey -storepass Uey39jhUEvmfoFro -keypass Uey39jhUEvmfoFro
keytool -list -v -keystore debug.keystore -alias audibledebugkey -storepass dzryQnPtfVGHcJH1 -keypass dzryQnPtfVGHcJH1
Then I copy and paste the SHA1 and SHA256 into my project settings in Firebase and then download the new google-services.json and add it to the app/app_resources/Android
directory. Finally, I build using the following command:
tns run android --key-store-path ~/Projects/audible/.keystore/debug.keystore --key-store-password dzryQnPtfVGHcJH1 --key-store-alias audibledebugkey --key-store-alias-password dzryQnPtfVGHcJH1
But, it does not work and the following error occurs:
JS: Make sure you've uploaded your SHA1 fingerprint(s) to the Firebase console
JS: Has the SHA1 fingerprint been uploaded? Sign-in status: Status{statusCode=DEVELOPER_ERROR, resolution=null}
What else can I try? Perhaps I missed a step? I didn't quite understand how to setup the Web SDK configuration; do I need to do something special for that step?