Android Question Two notifications with firebase

Nickelgrass

Active Member
Licensed User
Longtime User
Hello,
when I start my app and send a notification via Firebase it displays two notifications. One is the one I notify in my FirebaseMessaging serivice the other one I dont know where it comes from. It says the title of the app as title and subtitle. It is only displayed the first time. After that only the actual notification is show.
How can I disable this unwanted notification? Although I noticed it disapears by itself after a few seconds.
Thanks
 

Lucas Siqueira

Active Member
Licensed User
Longtime User
Hello,
when I start my app and send a notification via Firebase it displays two notifications. One is the one I notify in my FirebaseMessaging serivice the other one I dont know where it comes from. It says the title of the app as title and subtitle. It is only displayed the first time. After that only the actual notification is show.
How can I disable this unwanted notification? Although I noticed it disapears by itself after a few seconds.
Thanks

Try to change firebase service start sub code to this

B4X:
Sub Service_Start (StartingIntent As Intent)
    If StartingIntent.IsInitialized Then fm.HandleIntent(StartingIntent)
    Service.StopAutomaticForeground 'remove if not using B4A v8+.
End Sub
 
Upvote 0
Top