capacitor-community / capacitor-community/firebase-analytics

[IOS] [FirebaseAnalytics][I-ACS013000] Screen parameter value must be of type NSString: (nil)

Open
#175 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
Java
Stars
178
Forks
70
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
I faced with an issue related to
```
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:
1. Run setScreenName method with some string value
2. 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**
Screenshot 2024-01-25 at 16 18 47

**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.
Screenshot 2024-01-25 at 16 35 43

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.