H heldenssjoerd Member Nov 19, 2020 #1 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. Code: Copy 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 315.5 KB · Views: 553
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. Code: Copy 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
H heldenssjoerd Member Nov 19, 2020 #2 Does occur on android 9 and 10 on 2 diffrent devices. Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Nov 19, 2020 #3 Probably: Automatic Foreground Mode Carefully follow the tutorial: FirebaseNotifications - Push messages / Firebase Cloud Messaging (FCM) Upvote 0
Probably: Automatic Foreground Mode Carefully follow the tutorial: FirebaseNotifications - Push messages / Firebase Cloud Messaging (FCM)
H heldenssjoerd Member Nov 19, 2020 #4 Thank you Erel. The missing line in the ServiceStart of Firebasemessaging did the trick. Code: Copy Service.StopAutomaticForeground 'remove if not using B4A v8+. Upvote 0
Thank you Erel. The missing line in the ServiceStart of Firebasemessaging did the trick. Code: Copy Service.StopAutomaticForeground 'remove if not using B4A v8+.