You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import{Component,ViewChild}from'@angular/core';import{Platform,Nav}from'ionic-angular';import{StatusBar}from'@ionic-native/status-bar';import{SplashScreen}from'@ionic-native/splash-screen';import{OneSignal}from'@ionic-native/onesignal';import{FlurryAnalytics,FlurryAnalyticsObject,FlurryAnalyticsOptions}from'@ionic-native/flurry-analytics';import{OS_APP_ID,OS_PROJECT_ID,FA_APP_ID}from'../providers/config';
@Component({templateUrl: 'app.html'})exportclassmApp{
@ViewChild(Nav)navChild: Nav;rootPage: any;options: FlurryAnalyticsOptions={appKey: FA_APP_ID,reportSessionsOnClose: true,enableLogging: true};fa: FlurryAnalyticsObject;constructor(privateplatform: Platform,privatestatusBar: StatusBar,privatesplashScreen: SplashScreen,privateoneSignal: OneSignal,privateflurryAnalytics: FlurryAnalytics){this.fa=this.flurryAnalytics.create(this.options);this.initializeApp();}initializeApp(){this.platform.ready().then(()=>{if(window.hasOwnProperty('cordova')){this.oneSignal.startInit(OS_APP_ID,OS_PROJECT_ID).inFocusDisplaying(this.oneSignal.OSInFocusDisplayOption.Notification).endInit();this.fa.logEvent('open app').then(()=>console.log('Logged open app')).catch(e=>console.log('Error logging the event open app',e));}this.rootPage='HomePage';this.statusBar.styleLightContent();this.statusBar.backgroundColorByHexString('#292929');this.splashScreen.hide();});}}
When compiling app to Android phone with ionic cordova build android it works perfectly, when compiling with ionic cordova build android --prod this show an error in console Ionic Native: tried accessing the FlurryAnalytics plugin but it's not installed.
Thanks for the help.
The text was updated successfully, but these errors were encountered:
Hello,
There is my specs :
The plugin version is :
Code is (in app.component.ts) :
When compiling app to Android phone with
ionic cordova build android
it works perfectly, when compiling withionic cordova build android --prod
this show an error in consoleIonic Native: tried accessing the FlurryAnalytics plugin but it's not installed
.Thanks for the help.
The text was updated successfully, but these errors were encountered: