Android Question After notification 2 popups are shown

When sending a firebase-message to our device and the app is not active it automatically generates two popups.
1 with the data from the notification
the other with the data from the manifest. A "program" notification.
B4X:
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")

Is there a way to block this?
In the same app we're also using a variant of the tracker example which also generates a continous notification and a "program" notification. This means there are three notifications, one with the FCM data, one of the manifest and one of the tracker. The last two can't be cancelled. Looks a bit strange to us (and users).

Have a look at the screenshot.
The first is the FCM
The second the "program"
The third the tracker
 

Attachments

  • Screenshot_20201119-111045.jpg
    Screenshot_20201119-111045.jpg
    315.5 KB · Views: 184
Thank you Erel. The missing line in the ServiceStart of Firebasemessaging did the trick.
B4X:
Service.StopAutomaticForeground 'remove if not using B4A v8+.
 
Upvote 0
Top