analytics-ios icon indicating copy to clipboard operation
analytics-ios copied to clipboard

"Invalid type. Expected: integer, given: string" for Field `build` for event `Application Installed`

Open rnagella opened this issue 6 years ago • 2 comments

For the Application Installed event, the Segment dashboard reports the build field as a violation.

ApplicationInstalled-build_filed_voilation

Actual: It should not consider as a violation because

  1. CFBundleVersion should be a String according to Apple documentation
  2. Segment iOS SDK sends it as a String https://github.com/segmentio/analytics-ios/blob/master/Analytics/Classes/SEGAnalytics.m#L136

rnagella avatar Apr 02 '20 01:04 rnagella

Thanks @rnagella for both filing the issue and looking into the cause. I'll find out who owns this on the Segment side and get it fixed. Will report back here once I have more information.

bsneed avatar Apr 15 '20 21:04 bsneed

Hi @rnagella, I looked into this some more. You should be able to change your tracking plan to interpret Build as a string instead of an integer. This was most likely happening because a 2 year old version of Android did sent this value as an integer. This is no longer the case. This field is documented on the segment website as being of type String.

bsneed avatar Apr 22 '20 20:04 bsneed