Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: enable the remote ip #75

Merged
merged 1 commit into from
Sep 22, 2022
Merged

fix: enable the remote ip #75

merged 1 commit into from
Sep 22, 2022

Conversation

yuhao900914
Copy link
Contributor

Summary

In android SDK the IP address can be get on the server side.
The old android SDK is using the HTTP API v1. We don't need to set anything in order to use the remote IP. https://github.com/amplitude/amplitude/blob/master/event/converters/sdk.py#L164
But the Kotlin SDK is using the HTTP API V2, which required to pass ip="$remote" https://github.com/amplitude/amplitude/blob/master/event/converters/http_event.py#L528.

In order to fix the IP is null in kotlin SDK we need to pass the ip="$remote".

Checklist

  • Does your PR title have the correct title format?
  • Does your PR have a breaking change?:

@yuhao900914 yuhao900914 merged commit 232620c into main Sep 22, 2022
@yuhao900914 yuhao900914 deleted the ip_address branch September 22, 2022 17:08
github-actions bot pushed a commit that referenced this pull request Sep 22, 2022
## [1.3.2](v1.3.1...v1.3.2) (2022-09-22)

### Bug Fixes

* enable the remote ip ([#75](#75)) ([232620c](232620c))
@github-actions
Copy link

🎉 This PR is included in version 1.3.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants