[SOLVED] Default FirebaseApp is not initialized in this process

Hello,

There is a problem with an application that I didn’t see before. Firstly there is all information about the environment :

Ionic info :

cli packages: (/home/dlazzy/.nvm/versions/node/v7.8.0/lib/node_modules)

   @ionic/cli-utils  : 1.12.0
   ionic (Ionic CLI) : 3.12.0

global packages:

   cordova (Cordova CLI) : 8.0.0 

local packages:

   @ionic/app-scripts : 3.1.9
   Cordova Platforms  : android 6.4.0
   Ionic Framework    : ionic-angular 3.9.2

System:

   Android SDK Tools : 26.1.1
   Node              : v7.8.0
   npm               : 5.7.1 
   OS                : Linux 4.15

Misc:

   backend : pro

package.json :

"dependencies": {
        "@angular/animations": "5.2.10",
        "@angular/common": "5.2.10",
        "@angular/compiler": "5.2.10",
        "@angular/compiler-cli": "5.2.10",
        "@angular/core": "5.2.10",
        "@angular/forms": "5.2.10",
        "@angular/http": "5.2.10",
        "@angular/platform-browser": "5.2.10",
        "@angular/platform-browser-dynamic": "5.2.10",
        "@angular/platform-server": "^6.1.0",
        "@ionic-native/app-rate": "^4.11.0",
        "@ionic-native/background-mode": "^4.11.0",
        "@ionic-native/core": "^4.11.0",
        "@ionic-native/dialogs": "^4.11.0",
        "@ionic-native/facebook": "^4.11.0",
        "@ionic-native/globalization": "^4.11.0",
        "@ionic-native/google-analytics": "^4.11.0",
        "@ionic-native/in-app-browser": "^4.11.0",
        "@ionic-native/onesignal": "^4.11.0",
        "@ionic-native/social-sharing": "^4.11.0",
        "@ionic-native/splash-screen": "^4.7.0",
        "@ionic-native/status-bar": "^4.7.0",
        "@ionic/storage": "2.1.3",
        "cordova": "^8.0.0",
        "cordova-android": "6.4.0",
        "cordova-plugin-apprate": "^1.4.0",
        "cordova-plugin-background-mode": "^0.7.2",
        "cordova-plugin-device": "^2.0.2",
        "cordova-plugin-dialogs": "^2.0.1",
        "cordova-plugin-facebook4": "^2.2.0",
        "cordova-plugin-globalization": "^1.11.0",
        "cordova-plugin-google-analytics": "^1.8.6",
        "cordova-plugin-google-conversion-tracking": "0.0.5",
        "cordova-plugin-inappbrowser": "^3.0.0",
        "cordova-plugin-ionic-webview": "^1.2.1",
        "cordova-plugin-nativestorage": "^2.3.2",
        "cordova-plugin-splashscreen": "^5.0.2",
        "cordova-plugin-whitelist": "^1.3.3",
        "cordova-plugin-x-socialsharing": "^5.4.1",
        "cordova-sqlite-storage": "^2.3.3",
        "es6-promise-plugin": "^4.2.2",
        "ionic-angular": "3.9.2",
        "ionic-plugin-keyboard": "^2.2.1",
        "ionicons": "3.0.0",
        "moment-timezone": "^0.5.21",
        "onesignal-cordova-plugin": "^2.4.1",
        "rxjs": "5.5.11",
        "sw-toolbox": "3.6.0",
        "zone.js": "0.8.26"
    },
    "devDependencies": {
        "@ionic/app-scripts": "3.1.9",
        "typescript": "~2.6.2"
    }

When I send the app to the phone with ionic cordova build android, I open the app, see the splashscreen and for about 2 seconds the homescreen. But after that the app close and showing this in report : (MIUI report)

Nice but my project don’t use Firebase :disappointed: Maybe a native plugin use it ?

Thanks for your help

1 Like

Solved, I was using google-analytics plugin, just add :

"cordova-plugin-google-analytics": {
     "GMS_VERSION": "11.0.1"
}

Inside the package.json cordova.plugins.

Then in config.xml :

<plugin name="cordova-plugin-google-analytics" spec="^1.8.6">
    <variable name="GMS_VERSION" value="11.0.1" />
</plugin>