Comments (5)
@ileitch sorry unfortunately no way to silence it at the moment. I will add a debug flag to guard against these warning messages in the next release.
from amplitude-ios.
@ileitch can I ask you what your use case is? The error is printed when you try to call an Amplitude function before you initialize. If you only enable it for certain builds, then shouldn't you only call the function if it is enabled?
from amplitude-ios.
Our app delegate contains this:
- (void)configureAmplitude {
NSString *apiKey;
#ifdef RELEASE_SCHEME
apiKey = @"...";
#elif defined(ADHOC_ALPHA_SCHEME) || defined(ADHOC_BETA_SCHEME)
apiKey = @"...";
#else
// Uncomment to test Amplitude with debug builds.
// apiKey = @"...";
#endif
if (apiKey) {
[[Amplitude instance] initializeApiKey:apiKey];
}
}
To avoid the warning we would need to put a similar condition around every point that we trigger an event, which would not be ideal.
from amplitude-ios.
You can disable error messages in v3.8.1: https://github.com/amplitude/Amplitude-iOS/releases/tag/v3.8.1
from amplitude-ios.
Thanks, but I think I'd rather just live with this minor annoyance than disabling all error messages, I may silence something that's actually important.
from amplitude-ios.
Related Issues (20)
- Amplitude_iOS normal (in target 'Amplitude-iOS' from project 'Pods') HOT 1
- Vulnerability: App is Encoding Sensitive Information Using Outdated or Insecure Cryptography HOT 1
- How to integrate Amplitude into a single-target Apple Watch app? HOT 3
- Installation instructions are broken in website HOT 3
- Vulnerability: App is Encoding Sensitive Information Using Outdated or Insecure Cryptography
- Test Issue ticket creation in AMP
- Is there a way to batch events and send them manually? HOT 7
- visionOS support HOT 2
- Feature Request: Add a way to be notified when the session id changes HOT 2
- Not run in simulator HOT 5
- Is it possible to build static_xcframework from source code? HOT 1
- How can I disable tracking in Swift? HOT 2
- Data race in -[AMPIdentifyInterceptor transferInterceptedIdentify] HOT 1
- Xcode 15 and MacOS Sonoma throw analyze error HOT 1
- API CORS Header Configuration Potentially Allow Unintented Data Leakage
- iOS App Extension (Event Ordering / Grouping) HOT 1
- Apple says that support for the iad framework has ended and the framework must be removed. HOT 1
- Failed to send events in widget extension HOT 2
- Privacy Manifests HOT 10
- Identify does not always update user values
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amplitude-ios.