Firebase iOS Debug Console not logging anything

后端 未结 9 1838
南旧
南旧 2021-01-01 21:25

I have setup firebase in both the console and in the app. Everything configures correctly, and events appear to be logging in the app.

Output to console:

<         


        
9条回答
  •  情话喂你
    2021-01-01 22:23

    Try this , This is work for me ,

    Follow below steps ,

    1.In Xcode, select Product → Scheme → EditScheme.

    2.Select Run from left Menu and Select Arguments tab In the Arguments Passed on + option

    add -FIRDebugEnabled

    For detail debug view follow steps DebugView track Firebase doc

    To send an event in XCode project follow code below,

    Objective C

    [FIRAnalytics logEventWithName:@"share_image"
                        parameters:@{@"name": name, @"full_text": text}];
    

    Swift

    Analytics.logEvent("share_image", parameters: ["name": name, "full_text": text])
    

    For events log follow detail steps Log events in Application Firebase doc

    Hope this will help someone.

提交回复
热议问题