Nativescript-plugin-firebase: Nativescript V5 Crash on Start (Blank Template)

Created on 8 Dec 2018  路  5Comments  路  Source: EddyVerbruggen/nativescript-plugin-firebase

tns create myApp (Hello World and Plain Javascript)
cd myApp
tns debug android

Works fine.

tns plugin add nativescript-plugin-firebase

Copy over Google services files to iOS and Android

tns debug android

Crashes on boot.

packages.json

{
  "nativescript": {
    "id": "org.nativescript.myApp",
    "tns-android": {
      "version": "5.0.0"
    },
    "tns-ios": {
      "version": "5.0.0"
    }
  },
  "description": "NativeScript Application",
  "license": "SEE LICENSE IN <your-license-filename>",
  "repository": "<fill-your-repository-here>",
  "dependencies": {
    "nativescript-plugin-firebase": "^7.4.4",
    "nativescript-theme-core": "~1.0.4",
    "tns-core-modules": "~5.0.2"
  },
  "devDependencies": {
    "nativescript-dev-webpack": "~0.18.0"
  },
  "readme": "NativeScript Application"
}

app.gradle

android {  
  defaultConfig {  
    generatedDensities = []
    multiDexEnabled true
  }  
  aaptOptions {  
    additionalParameters "--no-version-vectors"  
  }  
} 


dependencies {
  compile 'com.android.support:multidex:1.0.3'
}

Most helpful comment

Yeah that change by Google really sucks. For others, also see https://github.com/EddyVerbruggen/nativescript-plugin-firebase/blob/master/docs/ADMOB.md#android

All 5 comments

Thanks for reporting, but please share that repo because it probably also depends on what Firebase features you've selected. I have 3 Firebase projects on NativeScript 5 that don't have this issue...

Adding crash details would be helpful as well.

Please share a repo and reopen and I'll take a look on Sunday.

Sure thing. For now here is the firebase config file as well.

{
    "external_push_client_only": false,
    "using_ios": true,
    "using_android": true,
    "firestore": true,
    "realtimedb": true,
    "authentication": true,
    "remote_config": false,
    "performance_monitoring": false,
    "messaging": true,
    "crashlytics": false,
    "crash_reporting": false,
    "storage": true,
    "functions": false,
    "facebook_auth": true,
    "google_auth": true,
    "admob": true,
    "invites": false,
    "dynamic_links": false,
    "ml_kit": false
}

I didn't add any code or anything to the app. It's the basic template from nativescript.

I'll try your demo next and see.

Demo works. I'll try and dig deeper as to what is going on.

Found issue.

Admob meta data was missing from the Android manifest XML. Incase anyone else has this issue. It just crashes without any error.

Yeah that change by Google really sucks. For others, also see https://github.com/EddyVerbruggen/nativescript-plugin-firebase/blob/master/docs/ADMOB.md#android

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jlooper picture jlooper  路  3Comments

Aceman18 picture Aceman18  路  3Comments

thunder413 picture thunder413  路  3Comments

WaseemAhmadZ picture WaseemAhmadZ  路  3Comments

andrewexton373 picture andrewexton373  路  4Comments