Application has stopped error with Firebase Push notification receiving


#1

Hello,

I have two similar apps with equal code. One app is create several month ago, another few days ago, but as it is show in config.xml It is same version of plugin in both apps and my SENDER_ID:

    <plugin name="phonegap-plugin-push" spec="^2.1.3">
    <variable name="SENDER_ID" value="443517677905" />
    <variable name="FCM_VERSION" value="11.6.2" />

It is same content in plugins/phonegap-plugin-push/push.gradle.

But I found difference in older, working app. It is a name of file: "starter-plugin-push", located by path: platforms/android/phonegap-plugin-push/starter-plugin-push

build.gradle of working app:

dependencies {
    implementation fileTree(dir: 'libs', include: '*.jar')
    // SUB-PROJECT DEPENDENCIES START
    implementation(project(path: ":CordovaLib"))
    compile "com.android.support:support-v13:26.+"
    compile "me.leolin:ShortcutBadger:1.1.17@aar"
    compile "com.google.firebase:firebase-messaging:11.6.2"
    // SUB-PROJECT DEPENDENCIES END
}

and build.gradle of crashed app:

dependencies {
    implementation fileTree(dir: 'libs', include: '*.jar')
    // SUB-PROJECT DEPENDENCIES START
    implementation(project(path: ":CordovaLib"))
    compile "com.android.support:support-v4:24.1.1+"
    compile "com.android.support:support-v4:25.+"
    compile "com.android.support:appcompat-v7:25.+"
    compile "com.google.android.gms:play-services-auth:11.8.0"
    compile "com.google.android.gms:play-services-identity:11.8.0"
    compile "com.android.support:support-v13:26.+"
    compile "me.leolin:ShortcutBadger:1.1.17@aar"
    compile "com.google.firebase:firebase-messaging:11.6.2"
    // SUB-PROJECT DEPENDENCIES END
}

New application popups error message: Application has stopped! on Android device with receiving of Push Notification , and does not receives new message itself, sanded from Google Firebase account Cloud Messaging. Name of file in this new app is "myapp-plugin-push" by same location: platforms/android/phonegap-plugin-push/myapp-plugin-push.

In config.xml both apps registered as com.name.myapp, so name of file “myapp-plugin-push” should be correct: <widget id="com.name.myapp" version="0.0.1" ... > not starter.

But sending of message from Firebase account, where project name corresponds to com.name.myapp name, not starter, receives notification only to older app with file name "starter-plugin-push".

My Installs and Push Notification code shown in my other topic with different question here. It is working code to receive message from Firebase account for all apps.

Advice would be very helpful