Android Question The app closes before it starts(With Firebaseauth Lib)

Salar82

Member
Hi
I use firebaseauth.
But the program closes immediately after editing without any errors.

I use this:

Screenshot (11).png


This is my project:


Thanks in advance for your help...
 

Attachments

  • FirebaseAuth.zip
    11.9 KB · Views: 91

Salar82

Member
Please don't make things more complicated than they should be.
I'm Sorry

I Use V1.06

1- I Created a new project in firebase consol
2- I Generated the private sign key At firebase console
Screenshot (13).png
Screenshot (12).png


3- I downloaded google-services.json And I Copied it into My project folder
4- I Copied These Texts into manifast:

B4X:
CreateResourceFromFile(Macro, FirebaseAnalytics.GooglePlayBase)
CreateResourceFromFile(Macro, FirebaseAnalytics.Firebase)
CreateResourceFromFile(Macro, FirebaseAuth.FirebaseAuth)

My manifast code:
B4X:
AddManifestText(
<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="28"/>
<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, Themes.DarkTheme)

CreateResourceFromFile(Macro, FirebaseAnalytics.GooglePlayBase)
CreateResourceFromFile(Macro, FirebaseAnalytics.Firebase)
CreateResourceFromFile(Macro, FirebaseAuth.FirebaseAuth)

5- Selected Authentication, selected sign in methods and selected google and saved the change.

But the app is not open yet .....

And My AndroidManifast:
 

Attachments

  • AndroidManifest.xml
    6.7 KB · Views: 94
Last edited:
Upvote 0

Salar82

Member
The app opens when I use version 1.00 with the old manifest code.
But
When I use version 1.06 with the new (macro) manifest code, the app won't open.
 
Upvote 0

Salar82

Member
I found out that despite this line in the manifest, the app was closing:
B4X:
CreateResourceFromFile(Macro, FirebaseAnalytics.Firebase)
 
Upvote 0
Top