parker parker - 1 year ago 470
Android Question

Why FirebaseApp initialization is very slow,How to reduce app start time

I am making one android app,earlier i have used gcm for push notification,right now I am trying firebase cloud messaging for sending push notifications.I have implemented firebase cloud messaging functionality in my app it is working fine but problem is it is taking too much time when app launches first time,please help me


apply plugin: ''

android {
compileSdkVersion 23
buildToolsVersion "23.0.2"

defaultConfig {
applicationId ""
minSdkVersion 15
targetSdkVersion 23
versionCode 1
versionName "1.0"
multiDexEnabled true
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), ''
dexOptions {
javaMaxHeapSize "4g"


dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile ''
compile ''

compile ''

apply plugin: ''

Answer Source

Do not compile whole fcm lib just compile below line.

compile ""
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download