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
FirebaseAnalytics.setScreenName({
screenName: 'The screen name',
});
What I see in logs
10.15.0 - [FirebaseAnalytics][I-ACS013000] Screen parameter value must be of type NSString: (nil)
10.15.0 - [FirebaseAnalytics][I-ACS031028] Received invalid class for screen: (nil)
To Reproduce
Steps to reproduce the behavior:
Run setScreenName method with some string value
You won't see an error in your app but you will see this error in Xcode logs. And, eventually you won't receive screen_view event.
Expected behavior
The library shouldn't have this error.
Screenshots
Smartphone (please complete the following information):
Device: iPhone 12 Pro
OS: 17.2.1
Additional context
Android handles this without any errors.
Also, I had a chance to debug this a little bit and maybe it will be useful:
I removed nameOverride to check if it can resolve the issue.
The text was updated successfully, but these errors were encountered:
@Sulorb You can simply provide a nameOverride param to fix the issue. This overrides the screen class name, which is not really useful in a Capacitor app anyway ...
FirebaseAnalytics.setScreenName({ // Sets screen name and logs screen view event.
screenName: 'My screen',
nameOverride: 'App' // Provide dummy screen class name to fix `nil` error on iOS.
});
Describe the bug
I faced with an issue related to
What I see in logs
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The library shouldn't have this error.
Screenshots

Smartphone (please complete the following information):
Additional context
Android handles this without any errors.
Also, I had a chance to debug this a little bit and maybe it will be useful:

I removed nameOverride to check if it can resolve the issue.
The text was updated successfully, but these errors were encountered: