Skip to content

IP geolocation cannot be turned off in JS mode #315

@morleyzhi

Description

@morleyzhi

Per the docs, to turn off geolocation:

mixpanel.setUseIpAddressForGeolocation(false);

This sets the useIpAddressForGeolocation setting, which is later read to set the ?ip=(0|1) querystring param.

However, the getter has a bug where it always returns true:

https://github.com/mixpanel/mixpanel-react-native/blob/master/javascript/mixpanel-config.js#L67-L72

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