Firebase Analytics events from iOS not showing up

后端 未结 10 1972
半阙折子戏
半阙折子戏 2020-12-15 03:39

I am testing the new Google-powered Firebase, and have implemented remote notifications and crash reporting. I am, however, having massive problems with getting Analytics to

10条回答
  •  半阙折子戏
    2020-12-15 04:08

    In Swift it should be like:

    FIRAnalytics.logEvent(withName: "SignUp", parameters: ["user_id": userid, "user_name": username])
    

    To view this event in Firebase:

    1. Go to Firebase console → Analytics tab
    2. Click on DebugView tab; your Events are shown there

    To view this event in Xcode:

    1. In Xcode, select Product → Scheme → EditScheme
    2. Select Run from left Menu
    3. Select Arguments tab
    4. In the Arguments Passed on Launch, add -FIRAnalyticsDebugEnabled

    One dash only!!

    Note that -FIRAnalyticsDebugEnabled has only ONE dash in front of it.

提交回复
热议问题