You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If it is omitted, Xcode logs errors for every setScreenName() call, and Analytics DebugView will not show that it received any screen_view events. Errors look like this:
2022-10-14 17:07:43.621470-0600 App[6719:1746615] 8.15.0 - [Firebase/Analytics][I-ACS013000] Screen parameter value must be of type NSString: (nil)
2022-10-14 17:07:43.621767-0600 App[6719:1746615] 8.15.0 - [Firebase/Analytics][I-ACS031028] Received invalid class for screen: (nil)
Those 2 logs appear for each call to setScreenName() that does not include the nameOverride property.
To Reproduce
In your app, call the method without the nameOverride property:
Just ran into this ourselves. The screen_view events were still appearing in Firebase Analytics but firebase_screen parameter was empty until we added a value for nameOverride.
A comment in the code seems to indicate that not passing nameOverride is used to clear the screen name, but it's true that on iOS you'll get a firebase error message saying that nil is invalid. On Android it doesn't complain about it.
Describe the bug
The typing for
setScreenName()
is incorrect. It shows thenameOverride
property as optional, but it is not:If it is omitted, Xcode logs errors for every
setScreenName()
call, and Analytics DebugView will not show that it received any screen_view events. Errors look like this:Those 2 logs appear for each call to
setScreenName()
that does not include thenameOverride
property.To Reproduce
In your app, call the method without the
nameOverride
property:Expected behavior
The method signature should require the
nameOverride
property.Desktop (please complete the following information):
Smartphone (please complete the following information):
The text was updated successfully, but these errors were encountered: