amplitude / experiment-ios-client Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
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
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.