Skip to content

Id field on Product should deserialize product_id instead of id? #746

@Bucimis

Description

@Bucimis

segmentio/analytics-react-native#277 (mirrored Appboy/appboy-segment-android#25)

We have an issue where a mutual customer is expecting to be able to pass product_id as the Id field on product objects, but only id is working. I believe it's because when deserializing Product objects, the Android code is expecting id instead of product_id

private static final String ID_KEY = "id";
(which eventually flows down to our integration https://github.com/Appboy/appboy-segment-android/blob/master/appboy-segment-integration/src/main/java/com/segment/analytics/android/integrations/appboy/AppboyIntegration.java#L263)

Is that understanding correct? I think this may only really come up with react native type integrations, where things aren't typed by integrators using the Java objects before being passed into Segment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions