Comments (7)
Sorry, it's my fault.
After calling init() in new plugin version, it works.
from amplitude-flutter.
Sorry, it's my fault.
After calling init() in new plugin version, it works.
I am having the same problem for my release apk. But debug app working correctly. Paypal button is not loading for release apk. While it's working for the dubg app
2021-04-15 11:28:38.392 7682-7780/com.example.flutterkotlinpypl E/com.amplitude.api.AmplitudeClient: context cannot be null, set context with initialize() before calling logEvent()
2021-04-15 11:28:38.396 7682-7780/com.example.flutterkotlinpypl E/nxoEvents: fire: No one listening to the event of type INSTRUMENTATION_SENT.
from amplitude-flutter.
@blaizechuang Have you solved your problem?
from amplitude-flutter.
@junyou131 Yes, the root cause is I forgot to call the init() after creating the Amplitude object
from amplitude-flutter.
Im having the same issue, any1 else know to resolve this ?
E/com.amplitude.api.AmplitudeClient( 5900): context cannot be null, set context with initialize() before calling logEvent()
Im calling like this:
static Future initAmplitudeAnalytics() async {
final String amplitudeKey = dotenv.env["AMPLITUDE_KEY"]!;
final Amplitude analytics = Amplitude.getInstance(instanceName: "Project");
analytics.init(amplitudeKey, userId: 'teste');
Amplitude.getInstance().trackingSessionEvents(true);
}
from amplitude-flutter.
You need to provide the instance name when logging events.
analytics.trackingSessionEvents(true);
analytics.logEvent('my event' );
OR
Amplitude.getInstance(instanceName: "Project").logEvent( 'my event');
from amplitude-flutter.
You need to provide the instance name when logging events.
analytics.trackingSessionEvents(true); analytics.logEvent('my event' );
OR
Amplitude.getInstance(instanceName: "Project").logEvent( 'my event');
great! It works for me!
final Identify identify = Identify()
..set('gender', 'female')
..set('age',20);
Amplitude.getInstance(instanceName: name).identify(identify);
from amplitude-flutter.
Related Issues (20)
- How to mock Amplitude when performing unit test?
- Test Issue ticket creation in AMP
- IP and location are transmitted even though CoppaControl is activated HOT 5
- Nested event_properties maps only serialize the top level on web HOT 1
- amplitude_flutter plugin not install my .yaml file HOT 1
- Can you make your account a verified publisher?
- Build failed on iOS with 'dart:js' error HOT 2
- Amplitude is logging wrong User properties for flutter SDK HOT 8
- Unusually Long Sessions HOT 1
- DefaultTrackingOptions configuration is missing on Flutter SDK HOT 4
- Support Kotlin 1.8 HOT 5
- Same '$identify' event being sent on every app background, even after opt-out/not updating user properties
- Version Conflict for 'Amplitude' in amplitude_flutter on CodeMagic Builds
- Execution failed for task ':amplitude_flutter:compileDebugKotlin'. (Android Gradle 8) HOT 3
- Access hidden method error HOT 1
- Session Reply [Web]
- Urgent need of a migration guide/documentation for `amplitude_flutter 4.0.0` HOT 4
- Using with encrypted db
- Only complete initialization after userId is properly set
- Missing NSPrivacyTracking in PrivacyInfo.xcprivacy HOT 4
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-flutter.