segment-integrations / analytics-ios-integration-amplitude

The Amplitude analytics-ios integration.
MIT License
11 stars 45 forks source link

'Set trait once' not working as expected #64

Open ronaldsmartin opened 5 years ago

ronaldsmartin commented 5 years ago

Hi folks,

I'm trying to create a user property that cannot be modified using the identify API. I've configured this in the Segment console as described in the docs (I did hit Save! 😄): image

I would have expected the integration to fork here https://github.com/segment-integrations/analytics-ios-integration-amplitude/blob/67397f5641661525820f78f881399b49ddd56c37/Pod/Classes/SEGAmplitudeIntegration.m#L90 and work as described. However, in Amplitude's console I'm seeing the value of that user property change after multiple calls. 😞

I'm guessing that the integration settings aren't getting updated appropriately. Any tips on troubleshooting this, or is there a way we can force the set-once behavior via the factory's configuration?