Android Question [Solved] FirebaseAuth don't initialize

asales

Expert
Licensed User
Longtime User
I'm starting to try and implement the firebase authentication in my app (that's in production).
This example in the tutorial of FirebaseAuth works fine:
https://www.b4x.com/android/forum/threads/firebaseauth-authenticate-your-users.67875/#content

I'm try to use the same example in my app, using the Google account to sign and don't work.
I'm changed the package name, manifest snippets and google-services.json to use the same of the example of auth that I tried and still don't works.

The code of auth is in the Starter Service:
B4X:
Sub Process_Globals
   Public auth As FirebaseAuth

Sub Service_Create
   auth.Initialize("auth")

The code is the same to both apps (my app and the example), but in my app the firebase auth don't initialize.

In unfiltered logs I get this messages about FirebaseAuth
B4X:
[1] com.google.android.finsky.externalreferrer.d.run(9): Package state data is missing for br.com.testesfb
getTasks: caller 10127 does not hold GET_TASKS; limiting output
Local module descriptor class for com.google.firebase.auth not found.
onReceive: WifiManager.RSSI_CHANGED_ACTION Received
updateWifiState: RSSI_CHANGED_ACTION: mWifiConnected=true mWifiLevel=4 mWifiRssi=-41
Local module descriptor class for com.google.firebase.auth not found.

What's happening?

Thanks in advance for any tip.
 

asales

Expert
Licensed User
Longtime User
The problem is the file:
\Objects\res\values\googleservices.xml
was marked with read-only and does not update the values.
 
Upvote 0
Top