I have an issue with Firebase Analytics. It basically boils down to the fact that nothing is registered; I have no data in my analytics page in the console.
I noticed today that when I want to send a push notification and I set a filter for the version number of my app, it shows "No versions available for this app". However, my iOS version of the app IS showing a version number in the dropdown list.
Does anyone have an idea what the issue is?
Some other issues I'm still experiencing:
"Firebase API initialization failure." IncompatibleClassChangeError ContextCompat.getNoBackupFilesDir() -> InvocationTargetException
Failed to load module descriptor class: Didn't find class "com.google.android.gms.dynamite.descriptors.com.google.firebase.auth.ModuleDescriptor"
Many thanks in advance.
the failed to load is not the problem, i have it too when using firebase-invites and i found this (Failed to load module descriptor class: Didn't find class "com.google.android.gms.dynamite.descriptors.com.google.firebase.auth.ModuleDescriptor")
the "Firebase API initialization failure." IncompatibleClassChangeError ContextCompat.getNoBackupFilesDir() -> InvocationTargetException
was fixed by updating the google services in the device
Related
I implemented Firebase into a Unity app I am creating. There are two buttons that will run the two functions to create a new user and login an existing user. So far this functionality works on my PC, however whenever I try to deploy it to my android phone or Mac I end up getting the following error in the console.
DllNotFoundException: FirebaseCppApp-5.1.0
Firebase.AppUtilPINVOKE+SWIGExceptionHelper..cctor ()
Rethrow as TypeInitializationException: An exception was thrown by the type initializer for SWIGExceptionHelper
Firebase.AppUtilPINVOKE..cctor ()
Rethrow as TypeInitializationException: An exception was thrown by the type initializer for Firebase.AppUtilPINVOKE
Firebase.AppUtil.SetLogFunction (Firebase.LogMessageDelegate arg0)
It appears there is a missing .dll file, however I cannot for the life of me find out how to include it within the project file. I also have double checked the package name and it is the exact same name as the one made for my Firebase project, the google-services JSON in the root of the project, and the Api compatibility level is set to .NET 2.0. On top of that I also uninstalled and reinstalled the app a few times. I also tried using the Play Services Resolver which didn't help much at all either.
Similar error here, only with Firebase Cloud Messaging. After tinkering around in a fashion similar to yours I concluded that it was caused by corruption during import of Firebase Package.
What worked for me:
Deleted each and every folder created while importing Firebase Package.
Reimported Firebase Package
Lately I've been getting quite some of these crashes:
java.lang.Exception: InitializationException : Firebase modules failed to initialize: remote_config (missing dependency)
at Firebase.FirebaseApp.CreateAndTrack(Firebase.FirebaseApp)
at Firebase.FirebaseApp.Create(Firebase.FirebaseApp)
at Firebase.FirebaseApp.get_DefaultInstance(Firebase.FirebaseApp)
at Firebase.Analytics.FirebaseAnalytics..cctor(Firebase.Analytics.FirebaseAnalytics.)
at Titan.Managers.GameManager.Awake(Titan.Managers.GameManager)
On Awake I'm only calling this: Firebase.Analytics.FirebaseAnalytics.SetUserId(udid);
Does anyone know what might be the problem here? We were also unable to reproduce this issue.
it can be cause because you are testing an emulator doen't have google api (google play services) installed, check that you choose an image with google api or
you have an old Google play services (below 9.0.0)
My Android app is using 3rd party library that uses native libraries.
It is built with targetSdkVersion 21.
When running my app on Android 7 phones (in my example, LG G20), users start getting a visible error message upon process initialization.
The error message screenshot is attached.
When running the same app on Android 5.x and 6.x, there is no error shown to the user, although there is still a matching warning message in the log. Log message looks like:
library "/data/app/org.iotivity.base.examples.simpleclient-1/lib/arm/libocstack-jni.so" has invalid DT_NEEDED entry "./obj/local/armeabi/libocprovision.so"
ךibrary "/data/app/org.iotivity.base.examples.simpleclient-1/lib/arm/libocstack-jni.so" has invalid DT_NEEDED entry "./obj/local/armeabi/libocpmapi.so"
So it looks likes Android 7 "decides" to show to the end user a warning which is kept for the log only in previous versions.
I would appreciate:
1. Ideas on how the error message can be suppressed
2. Hints on what is the right solution for the issue (this is a 3rd party code, but I may try to tweak the build process)
Thanks in advance
Max
I'm implementing google authentication on firebase using the firebaseui lib.
Firebase is working properly, i can access the data in my database, and email/password auth is also working, although when i try to login using google i always get the same error :
W/AuthMethodPicker: Firebase sign in with credential unsuccessful
com.google.firebase.FirebaseException: An internal error has occured. [ Cannot find GOOGLE appId for project: 12345678. ]
at com.google.android.gms.internal.zzafg.zzes(Unknown Source)
at com.google.android.gms.internal.zzafd$zzg.zza(Unknown Source)
at com.google.android.gms.internal.zzafo.zzet(Unknown Source)
at com.google.android.gms.internal.zzafo$zza.onFailure(Unknown Source)
at com.google.android.gms.internal.zzafj$zza.onTransact(Unknown Source)
at android.os.Binder.execTransact(Binder.java:453)
i know that this value is extracted from the json file and added as a resource property during build by com.google.gms.google-services plugin, so i checked and the property was in fact added but for some reason it seems that firebase is not able to read it at runtime..
Any idea about what i can be doing wrong?
thanks!
Before you generated your app's google-services.json, did you enable Google Sign In for your project?
https://developers.google.com/identity/sign-in/android/start-integrating
Make sure you have a Firebase project
In that project make sure you have enabled GOOGLE AUTHENTICATION
Now Download a fresh copy of the google-services.json and replace it with the old one inside your app folder
yes i enabled google auth before generating the json.
Another detail is descovered in the meantime if that google auth does work without firebase-ui.
What i did was to try their example of google auth (adding to my app source) and it worked without issues.
Adding firebase-ui seems to remove the need for some extra logic so i wanted to use it, but it seems i'm either missing something or there is a bug on firebase-ui .
Leaving this here for anyone that might encounter this issue now.
Had a similar problem to above only difference is i had it on iOS. Would try to launch and sign in through google and would get the same internal error.
What worked for me was enabling the identity kit on google API and then checking "Google" and the other providers I used. You can find this on the google cloud console -> API Manager -> Dashboard.
App restart, clean build and then everything worked.
Last week I got the infamous "Your app's ssl cert validation is insecure" [link] warning for our app.
As we don't use a custom TrustManager, I scanned the app's apk for occurrences of "checkServerTrusted". The only class that came up is related to Fabric/Crashlytics (most probably io.fabric.sdk.android.services.network.PinningTrustManager).
Does anyone know if there's a problem with Fabric's implementation of TrustManager? Did anyone using Fabric (and no custom implementation of TrustManager) also get this warning?
I didn't find the source code of the SDK, so I couldn't check myself, however if you see similar results, in a next step I'd contact their support.
Update:
I contacted fabric support and posted to twitter dev forums.