Question

Problem setting profiles city, region, country by ip in backend

  • 29 January 2021
  • 0 replies
  • 18 views

Hi support i try to set profile $ip like this: 

val props = JSONObject()
props.put("\$ip", "95.19.55.17")
val jsonObject = messageBuilder.set("1", props)

Later i use a client delivery for the deliver the message: 

delivery.addMessage(jsonObject)
mixpanel.deliver(delivery)

My problem is that the ip is setted on the user profile, but the region & city & country code are undefined.

How i can fill this fields correctly?

Thanks for your help.

Note: I use kotlin for the backend implementation.


0 replies

Be the first to reply!

Reply


Mixpanel