Skip to content

Firebase Analytics: setUserID does not show in DebugView #4313

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
professorbk opened this issue Nov 14, 2019 · 12 comments
Open

Firebase Analytics: setUserID does not show in DebugView #4313

professorbk opened this issue Nov 14, 2019 · 12 comments

Comments

@professorbk
Copy link

[REQUIRED] Describe your environment

  • Xcode version: 10.1

  • Firebase SDK version: 6.11.0

  • Firebase Component:

    pod 'Firebase/Core'
    pod 'Firebase', '6.11.0'
    pod 'Firebase/InAppMessagingDisplay'
    pod 'Firebase/DynamicLinks'
    pod 'Firebase/Messaging'
    pod 'Fabric', '~> 1.10.2'
    pod 'Crashlytics', '~> 3.13.2'
    pod 'GoogleAppMeasurement', '6.1.3'
    

[REQUIRED] Describe the problem

Analytics.setUserID does not work.

Steps to reproduce:

I added these code inside a function to log some properties:

                Analytics.setUserID("999")
                Analytics.setUserProperty("888", forName: "property_name")

DebugView only shows "888"; which mean Analytics.setUserID did not work, and only Analytics.setUserProperty worked.
Dashboard's filter by User property user_id does not include expected result "999"

@professorbk
Copy link
Author

professorbk commented Nov 14, 2019

I did try the newest Firebase SDK 6.12.0, and pod update; but the issue still persists.
My code project is written in Swift 3.2

@allenktv
Copy link
Contributor

Hi @professorbk,

It make some time after setting the user ID before the data gets uploaded to the dashboard. How long did you wait after setting the user ID before you checked the dashboard?

Also could you provide us with device logs while using debug mode?

@professorbk
Copy link
Author

@allenktv thank you so much for your support.
Today I saw user ID 999 was uploaded to Dashboard. But in Debugview, it still only shows property_name "888", and there is no userID "999". Is this behaviour abnormal?

Yesterday, after setting the user ID, I waited about 4~5 hours, and the user ID was not available on Dashboard yet.

About device log, in xcode, I open Window -> Devices and Simulators -> Devices -> View Device Logs, and I saw some log files of type Crash and Unknown. Could you please tell me which log file I need to provide?

@allenktv
Copy link
Contributor

Hi @professorbk,

I am glad you are seeing the user ID as being set correctly. The user ID not showing up in debug view is indeed a bug and I have filed an internal tracker at b/144576881 for it.

Thank you.

@professorbk professorbk changed the title Firebase Analytics: setUserID does not work Firebase Analytics: setUserID does not show in DebugView Nov 18, 2019
@amorino
Copy link

amorino commented Nov 26, 2019

I'm having the same problem, coming from react-native-firebase. Will this be fixed on web or do we need to update the iOS plugin?

@morganchen12
Copy link
Contributor

@amorino afaik Analytics on RN uses the native SDK, so you'll need to update your iOS plugin version.

@alexbtlv
Copy link

Same for me, FirebaseAnalytics 6.2.1

@connorpmullins
Copy link

Problem seems to persist with "@react-native-firebase/analytics": "^6.7.1". My setUserId call is not being displayed in debug view.
I know it's firing because I passed an incorrect parameter and got an error message, and after changing the parameter to a string the error went away. Additionally, the logLogin call I am making right after the setUserId call is being displayed.

@brianwhon
Copy link

there seems to be a reference error (undefined is not an object) with 'this.native', and the error exists for setUserId, setSessionTimeoutDuration, and setMinimumSessionDuration. Anyone find a fix? perhaps rolling back to a particular version?

@mxnmike
Copy link

mxnmike commented Aug 11, 2021

Im still having this issue on firebase Analytics 8.5.0 for iOS.. is there any fix?

@ridcully99
Copy link

I have the same problem with Firebase Analytics on Android. I turned on verbose logging and according to LogCat, the user_property user_id is sent to firebase. So maybe/hopefully this is just a bug in DebugView. I will see tomorrow or so, when the data is available in the events view...

@gbernar-etr
Copy link

gbernar-etr commented Aug 11, 2022

I'm having the same issue, user_id is set on the front end but not showing in DebugView. Any clues?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests