segmentio / analytics-ios

The hassle-free way to integrate analytics into any iOS application.
https://segment.com/libraries/ios
MIT License
402 stars 334 forks source link

Character limit on identify tracking #1040

Open nickjf89 opened 2 years ago

nickjf89 commented 2 years ago

Describe the bug I am calling the identify method with a hashed copy of the user's email address. This never appears in the web debugger, but when I change the userId to something short, such as my first name or "test", it works without issue. Is there a character limit applied? The segment debugger doesn't show any signs of errors.

To Reproduce Steps to reproduce the behavior:

Platform (please complete the following information): Library Version in use: 7.9.0 Platform being tested: iOS Integrations in use: Amplitude

Update I've since found that there seems to be a character limit applied, as passing ee1d83696ded26626ad9fd3 (a shortened version of the original id) is sent correctly.

Can you advise if this is a bug or expected? For context, we have other teams identifying with strings this length, it only seems to be a problem on the iOS sdk.