firebase / firebase-unity-sdk

The Firebase SDK for Unity
http://firebase.google.com
Apache License 2.0
214 stars 35 forks source link

[Question] Analytics verbose logging doesn't work with -FIRAnalyticsVerboseLoggingEnabled on iOS #1069

Open BogdanBobkov opened 1 month ago

BogdanBobkov commented 1 month ago

What is your question?

Hi,

we want to enable verbose logging to view consent logs, but we don't see them on iOS devices. We follow the instructions described in the article, but nothing changes. Should this argument work with the Unity SDK? When we try to run this on Android, there are no problems.

image

Firebase Unity SDK Version

12.1.0

Unity editor version

2021.3.37f1

Installation Method

Unity Package Manager

Problematic Firebase Component(s)

Analytics

Other Firebase Component(s) in use

Analytics, Crashlytics, Messaging

Additional SDKs you are using

Facebook, Applovin MAX, AppMetrica, IronSource AdQuality, Usercentrics, Adjust, Amazon

Targeted Platform(s)

Apple Platforms

Unity editor platform

Windows

Scripting Runtime

IL2CPP

Release Distribution Type

Pre-built SDK from https://firebase.google.com/download/unity

google-oss-bot commented 1 month ago

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

argzdev commented 1 month ago

Hey @BogdanBobkov, thanks for reaching out. It looks like what you've configured is correct. I've tested with our Firebase Analytics Quickstart For Unity for version 12.1.0, and it seems to log the events correctly. Have you deleted and reinstalled the app after adding the arguments?

Artemiy42 commented 1 month ago

@argzdev Thanks for your answer. Yes, we deleted and reinstalled the app after adding the arguments and nothing changed.

argzdev commented 1 month ago

Hey @Artemiy42, thanks for confirming. I see the problem now. It should be -FIRDebugEnabled, and not -FIRAnalyticsDebugEnabled. This should work after you add this as a parameter.

Screenshot 2024-07-24 at 12 17 08 AM

Let me know if this works.

I think there's a problem with our iOS docs, it seems that after further testing, the -FIRAnalyticsDebugEnabled doesn't affect the logs. And only the -FIRDebugEnabled argument supplied show the logs. Let me bring this up to our engineers. It could be a mistake in the public documentations.

Quick update: It looks like this is working for native iOS, but isn't working for Unity built apps for iOS.

Artemiy42 commented 1 month ago

Hi, thank you for your reply. We are using -FIRDebugEnabled to view events in the Firabase console, but there are still no logs. When approximately can you fix it so we can update?