- Make sure to use B4A v13.4+ with the recommended SDK: https://www.b4x.com/b4a.html
- Follow firebase integration tutorial: Integrating Firebase Services
- Add a reference to OkHttpUtils2.
- Add to Main:
B4X:#AdditionalJar: com.google.firebase:firebase-crashlytics #AdditionalJar: com.google.android.datatransport:transport-runtime #AdditionalJar: com.google.android.datatransport:transport-backend-cct
- Make sure that #VersionName attribute is not empty. It will not work with an empty value.
- Add to manifest editor:
B4X:CreateResourceFromFile(Macro, FirebaseAnalytics.GooglePlayBase) CreateResourceFromFile(Macro, FirebaseAnalytics.Firebase) CreateResourceFromFile(Macro, FirebaseAnalytics.Crashlytics)
- Make sure that Crashlytics is enabled in Firebase console and crash the app in release mode. You can use this code:
B4X:Dim i As Int = "aaa"
Last edited: