Giter Site home page Giter Site logo

Comments (4)

liuyang1520 avatar liuyang1520 commented on May 26, 2024 1

Hi @kelvinharron ,

Good to hear that you figured it out!

The default serverZone value is US, as I notice you mentioned ServerZone.EU in the steps to produce, so I tested it with my EU Amplitude project. This is the expected behavior that after setting EU, it will send to the EU endpoint, and the new version (0.3.1) fixed a bug to make this ServerZone.EU actual work.

If you need to use the EU server, you need to create a project in the EU endpoint as you mentioned above, the API key is not shared across projects. I am not sure about the process of moving to EU, contacting customer support would definitely be helpful on this.

Closing this now, feel free to leave comment if you have more questions, thanks again for supporting Amplitude!

from amplitude-swift.

liuyang1520 avatar liuyang1520 commented on May 26, 2024

Hi @kelvinharron ,

Thanks for supporting Amplitude!

I just tried the example with following configure, the events are fired and showing up in Amplitude:

configuration: Configuration(apiKey: "xxx", logLevel: LogLevelEnum.DEBUG, serverZone: ServerZone.EU)

I don't think it is related to that change. Could you add the callback to check what is the response?

        configuration: Configuration(
            apiKey: "xxx",
            logLevel: LogLevelEnum.DEBUG,
            callback: { (event: BaseEvent, code: Int, message: String) -> Void in
                print("eventcallback: \(event), code: \(code), message: \(message)")
            },
            serverZone: ServerZone.EU,
        )

Thanks!

from amplitude-swift.

kelvinharron avatar kelvinharron commented on May 26, 2024

Hey @liuyang1520 thank you for the useful snippet and apologies for the delay in getting back to you.

I worked it out, the callback is not invoked on version 0.3.1 because the serverZone property is set to EU. When I remove this setting I can see the events being fired up! Was this an intended change from the new version?

I believe the admin who created our project created it on https://analytics.amplitude.com not https://analytics.eu.amplitude.com, as our login only works for the former. I figure this means the library is behaving as expected, before closing this out I assume your recommendation is to contact support about discussing a move to the EU server? Thanks again! 😄

from amplitude-swift.

kelvinharron avatar kelvinharron commented on May 26, 2024

Thanks again for the support @liuyang1520 !

from amplitude-swift.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.