Firebase Analytics using @angular/fire/analytics in iOS/Android app... possible?

Hello guys,

I have build a Ionic/Angular app with Firestore as storage and so far apps works as expected, when tested from the Apple and Android stores. Next thing to implement is Firebase Analytics.

Since Firebase Analytics should be part of the ‘@angular/fire’ I went that way. It quickly had some information available for me in the Firebase > Analytics > DebugView (using $ ionic cordova run browser) I thought I was king! Published new versions of the app to the stores, but then silence…

I’m not able to determine from the documentation (https://github.com/angular/angularfire), if it should work from iOS/Android apps or not, so I’m seeking some help here.

Regards,
Michael Knudsen

app.module.ts:

import { AngularFireModule } from '@angular/fire';
import { AngularFireAuthModule } from '@angular/fire/auth';
import { AngularFirestoreModule } from '@angular/fire/firestore';
import { AngularFireAnalyticsModule, DEBUG_MODE } from '@angular/fire/analytics';
...
imports: [
   ...
   AngularFireAnalyticsModule, 
   ...
],
providers: [
    ...
   { provide: DEBUG_MODE, useValue: true },
   ...
]
Ionic:
   Ionic CLI                     : 6.11.0 
   Ionic Framework               : @ionic/angular 5.3.4
   @angular-devkit/build-angular : 0.1001.3
   @angular-devkit/schematics    : 10.1.3
   @angular/cli                  : 10.1.3
   @ionic/angular-toolkit        : 2.3.3

Cordova:
   Cordova CLI       : 9.0.0 (cordova-lib@9.0.1)
   Cordova Platforms : android 8.1.0, browser 5.0.4, ios 5.1.1
   Cordova Plugins   : cordova-plugin-ionic 5.4.4, cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 4.1.1, (and 19 other plugins)

hey mate, did you resolve this issue ?

Hello Shashikaxp, no I haven’t solved the issue :expressionless:

:slightly_frowning_face:

U have the tracker id in your config?