Closed khrm355 closed 1 year ago
I have the same problem with 10.0.1 and Unity 2021.3.11f1
I haven't had any luck reproducing this on my end. Can I ask why you need to LogEvent before the initialization, and can't wait until afterwards? It is definitely recommended you initialize before doing any of the other calls, but it shouldn't freeze things.
Something you can try is adding:
Firebase.App.LogLevel = Firebase.LogLevel.Debug;
before any of the other calls, which will make it log more what is happening, which might give some insight as to the problem.
@a-maurice I fixed my issue with creating a callback under ContinueWith(task =>. Well let me explain my usage, I call initialize firebase at the beginning. After the initialize function, I also call log.event to send if the app or os is updated. I wonder if it's normal behavior to freeze and crash the whole game if Firebase isn't initialized somehow. Isn't that should be queue that log? event until firebase initializes?
I had to downgrade my firebase SDKs to 9.6.0 as the 10.0.1 package is not compatible with Ironsource adapters, I will reproduce this in a new project and share it here.
It definitely shouldn't be freezing or anything, which is the odd part. Especially in editor, where Analytics doesn't reach out to the backend at all. If you do have anything you can share that reproduces this, or any logs from the freeze, that'd be great. Especially if it is in the editor, the Unity editor logs might have some hints as to what the problem is.
Hey @khrm355. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically.
If you have more information that will help us get to the bottom of this, just add a comment!
Since there haven't been any recent updates here, I am going to close this issue.
@khrm355 if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.
[REQUIRED] Please fill in the following fields:
[REQUIRED] Please describe the issue here:
On app startup, I send App version and OS version with FirebaseAnalytics.LogEvent(), but it instantly freeze my app in editor or build.
I initilize Firebase with this code;
Steps to reproduce:
Have you been able to reproduce this issue with just the Firebase Unity quickstarts (this GitHub project)?
What's the issue repro rate? (eg 100%, 1/5 etc)
What happened? How can we make the problem occur?