blakgeek / cordova-plugin-flurryanalytics

Adds support for all that Flurry Analytics flavored goodness to your Cordova based apps
23 stars 29 forks source link

Can´t send a logEvent #23

Closed scrakcho closed 7 years ago

scrakcho commented 7 years ago

Installing the plugin, adding the module and prepare it in app.components.ts whith this code: const options: FlurryAnalyticsOptions = { appKey: 'YYGFKS44WD7WJXJYWBFB', reportSessionsOnClose: true, enableLogging: true }; let fa: FlurryAnalyticsObject = this.flurryAnalytics.create(options); fa.startSession();//This is optional fa.logEvent('acceso_contenidoes', {nombre_contenido:'Recomendado y Ampliado'}) .then(() => console.log('Logged an event!')) .catch(e => console.log('Error logging the event', e));

This erros occurs...

Error logging the event kFlurryEventFailed (about logEvent) ERROR message: "Uncaught (in promise): Invalid Action: startSession" (about startSession)