If the targetSdkVersion is less than 26 then the old app should work. That is unless it is not configured properly or you are not sending the messages properly.
1. Starter service should never be started at boot.
2. You need to update the code: https://www.b4x.com/android/forum/t...-messages-firebase-cloud-messaging-fcm.67716/
3. Start with a topic named "general"
4. Are you sending the message with the B4J code?
05-04 16:37:49.566 862-2039/? D/PowerManagerNotifier: onWakeLockAcquired: flags=1, tag="GOOGLE_C2DM", packageName=com.google.android.gms, ownerUid=10030, ownerPid=1827, workSource=WorkSource{10159 firebase.test}
05-04 16:37:49.569 862-11061/? V/ActivityManager: Broadcast: Intent { act=com.google.android.c2dm.intent.RECEIVE flg=0x10 pkg=firebase.test (has extras) } ordered=true userid=0 callerApp=ProcessRecord{83e2a4e 1827:com.google.android.gms.persistent/u0a30}
05-04 16:37:49.571 862-952/? W/BroadcastQueue: Reject to launch app firebase.test/10159 for broadcast: App Op 69
05-04 16:37:49.574 1827-1827/? W/GCM: broadcast intent callback: result=CANCELLED forIntent { act=com.google.android.c2dm.intent.RECEIVE pkg=firebase.test (has extras) }
05-04 16:37:49.576 862-2032/? D/PowerManagerNotifier: onWakeLockReleased: flags=1, tag="GOOGLE_C2DM", packageName=com.google.android.gms, ownerUid=10030, ownerPid=1827, workSource=WorkSource{10159 firebase.test}
Everything is explained in the video tutorial: https://www.b4x.com/android/forum/t...-messages-firebase-cloud-messaging-fcm.67716/Ok, also "FirebaseMessaging" service never started at boot?
doneEverything is explained in the video tutorial: https://www.b4x.com/android/forum/t...-messages-firebase-cloud-messaging-fcm.67716/
If it doesn't work for you then upload the updated project.
Your projects are fine. I'm able to send and receive messages with your projects, after changing the package name and the server key.
Note that you are using the old server key in the "Send" project. The new one should be much longer.
If it doesn't work for you with the new server key then try to create a new firebase project.
5-08 11:28:25.774 853-2032/? D/PowerManagerNotifier: onWakeLockAcquired: flags=1, tag="GOOGLE_C2DM", packageName=com.google.android.gms, ownerUid=10030, ownerPid=1836, workSource=WorkSource{10163 firebase.test2}
05-08 11:28:25.777 853-1437/? V/ActivityManager: Broadcast: Intent { act=com.google.android.c2dm.intent.RECEIVE flg=0x10 pkg=firebase.test2 (has extras) } ordered=true userid=0 callerApp=ProcessRecord{354a7d5 1836:com.google.android.gms.persistent/u0a30}
05-08 11:28:25.779 853-956/? W/BroadcastQueue: Reject to launch app firebase.test2/10163 for broadcast: App Op 69
05-08 11:28:25.783 1836-1836/? W/GCM: broadcast intent callback: result=CANCELLED forIntent { act=com.google.android.c2dm.intent.RECEIVE pkg=firebase.test2 (has extras) }
05-08 11:28:25.785 853-4513/? D/PowerManagerNotifier: onWakeLockReleased: flags=1, tag="GOOGLE_C2DM", packageName=com.google.android.gms, ownerUid=10030, ownerPid=1836, workSource=WorkSource{10163 firebase.test2}
It will only be less reliable.I'm thinking to custom notification
Some devices will not let your app start implicitly after the user kills it from the recent apps list, especially if you killed the app multiple times.
It doesn't matter if you write the app with B4A or Java. The behavior will be identical.for which it's a problem of permissions or other of specific B4A app.
For have high impression on banner is very important be sure that the notification are reliable
Don't compare your app to gmail, facebook and other very popular apps. Some devices treat those apps differently.
It will not help at all. The problem is this:i'm thinking to use a MQTT protocol
Test it with a different package name and avoid explicitly killing the app.
05-10 14:47:31.729 869-920/? W/BroadcastQueue: Reject to launch app com.company.news.blog/10164 for broadcast: App Op 69