firebase-ios-sdk icon indicating copy to clipboard operation
firebase-ios-sdk copied to clipboard

Firebase Analytics iOS - integer event parameters aren't sent

Open volodymyr-ivanyshyn-ja opened this issue 1 year ago • 3 comments

Description

When triggering event with integer parameter this parameter is sent with null value in result. Here is sample code:

protocol AnalyticsParamTypeCompliant {}
extension String: AnalyticsParamTypeCompliant {}
extension Int: AnalyticsParamTypeCompliant {}
extension Double: AnalyticsParamTypeCompliant {}

var params: [String: AnalyticsParamTypeCompliant] = [:]
params += ["int_param": 1]
FirebaseAnalytics.Analytics.logEvent("my_event", parameters: params)

Reproducing the issue

Use the sample code from the issue description, trigger it and check on Goggle Analytics dashboard

Firebase SDK Version

10.23

Xcode Version

15.4

Installation Method

Swift Package Manager

Firebase Product(s)

Analytics

Targeted Platforms

iOS

Relevant Log Output

No response

If using Swift Package Manager, the project's Package.resolved

Expand Package.resolved snippet

Replace this line with the contents of your Package.resolved.

If using CocoaPods, the project's Podfile.lock

Expand Podfile.lock snippet

Replace this line with the contents of your Podfile.lock!

volodymyr-ivanyshyn-ja avatar Aug 14 '24 21:08 volodymyr-ivanyshyn-ja

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

google-oss-bot avatar Aug 14 '24 21:08 google-oss-bot

Thanks for reporting, @volodymyr-ivanyshyn-ja. I tried reproducing the issue but I'm able to get the value of my event parameters. Could you share a sample app that reproduces the issue? Also, have you tried adding a value manually in your params and see if this will send in your Analytics dashboard?

rizafran avatar Aug 19 '24 21:08 rizafran

Hey @volodymyr-ivanyshyn-ja. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

google-oss-bot avatar Aug 26 '24 01:08 google-oss-bot

Since there haven't been any recent updates here, I am going to close this issue.

@volodymyr-ivanyshyn-ja if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.

google-oss-bot avatar Sep 02 '24 01:09 google-oss-bot