Android Question Firebase Auth works locally not in Google Play [resolved]

wyatt420

Member
Licensed User
Longtime User
I have been testing Firebase Auth, and i can get it working locally in debug/release to my phone.
It creates the account and i can upload/download to storage.

When i put the app into Google Play (Alpha Testing) it does not log in to google and crate a storage account. In the process below "6" never pops up, but it does when testing locally.

B4X:
Sub btnLogin_Click
    ToastMessageShow("4", False) 'Yes
    Starter.auth.SignInWithGoogle
    ToastMessageShow("5", False) 'Yes
End Sub
...
Private Sub Auth_SignedIn (User As FirebaseUser)
    ToastMessageShow("6", False) 'No
    CallSub(Main, "SignedIn")
End Sub

Does anyone know if there is a timeout setting, or an ID description between google play and firebase that must match up that i may have missed?

FirebaseAuth v1.05
FirebaseStorage v1.11

B4X:
'This code will be applied to the manifest file during compilation.
'You do not need to modify it in most cases.
'See this link for for more information: https://www.b4x.com/forum/showthread.php?p=78136
AddManifestText(
<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="26"/>
<supports-screens android:largeScreens="true"
    android:normalScreens="true"
    android:smallScreens="true"
    android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
CreateResourceFromFile(Macro, FirebaseAnalytics.GooglePlayBase)
CreateResourceFromFile(Macro, FirebaseAnalytics.Firebase)
CreateResourceFromFile(Macro, FirebaseAuth.FirebaseAuth)
CreateResourceFromFile(Macro, FirebaseAnalytics.FirebaseAnalytics)
'End of default text.

AddPermission(android.permission.WRITE_EXTERNAL_STORAGE) ' Allows an application to write to external storage.
AddPermission(android.permission.INTERNET) ' Allows applications to open network sockets.
 

wyatt420

Member
Licensed User
Longtime User
ok, i have fixed the issue in case anyone else encounters it.
once adding to the google store, you need to get the App Signing Cert SHA-1 and copt that into Firebase.

upload_2018-9-5_10-17-1.png
 
Upvote 0
Top