Analytic Firebase

So, i tried to use Firebase Analytic for my ionic 4 apps. And i found 2 plugins for it:

  • { AnalyticsFirebase } from ‘@ionic-native/analytics-firebase’

  • { FirebaseAnalytics } from ‘@ionic-native/firebase-analytics/ngx’

which one should i use and what are the differences? thank you!

{ FirebaseAnalytics } from ‘@ionic-native/firebase-analytics/ngx’
Use this package because most of the time ionic 4 needs to be the package that ends with ngx .

i’ve tried to use the plugins but i got an error like this.

Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForRelease'.
> Error while merging dex archives: 
  Learn how to resolve the issue at
  Program type already present:$MyResultReceiver

I’m using for all Firebase related things: Push, Analytics, etc. Give it a try

1 Like

Your suggestion works like a charm. but i have a question tho, for authentication FirebaseX only support verifyPhoneNumber if i’m not mistaken. what is your suggestion for the other firebase Authentication methods ?

can i use FirebaseX with Firebase Authentication ? Thank You!