Giter Site home page Giter Site logo

experiment-ios-client's People

Contributors

amplitude-sdk-bot avatar bgiori avatar curtisliu avatar dus7 avatar fedejordan avatar qingzhuozhen avatar yuhao900914 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

experiment-ios-client's Issues

Unable to use `clear()` method from `ExperimentClient`

Hi team, we want to integrate Experiment in our project but noticed that we cannot clear the cache for the experiments.

In the docs it says:

/// You can call clear after user logout to clear the variants in cache and storage.
experiment.clear()

But the clear() method is not present in the ExperimentClient protocol definition.
It's just in the DefaultExperimentClient implementation, which is internal in the package and unable to access from the consumer.

Can you do a fix to make it available for the consumer?
Thanks in advance

Platform reports `iOS` while running on `macOS`

See this line of code: https://github.com/amplitude/experiment-ios-client/blob/main/Sources/Experiment/DefaultUserProvider.swift#L54

When using the SDK on macOS, I would expect this value to be macOS.
The Amplitude SDK seems to do this differently, since our analytics still show users for macOS. However, variants are fetched using iOS instead:

[Experiment] Fetch variants for user: ["platform": "iOS", "version": "2.0.0", "user_id": "XXX", "language": "English", "os": "ios 13.3.1.", "device_id": "XXX", "device_manufacturer": "Apple", "device_model": "arm64", "library": "experiment-ios-client/1.9.0"]

Note the value for os being ios 13.3.1.: the macOS version is correct, but it's prefixed with iOS instead of macOS. Due to this, our experiment didn't work as we were targeting macOS users.

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.