Android Question Undesired Notification

Marcos Alves

Well-Known Member
Licensed User
Longtime User
Hello,
In Android V8 in getting in an app an undesirable notification with my app icon that the user cant clear, like a foreground service icon. But I don't have any foreground service running, besides the android app manager is showing this... how can I find what service is causing this effect to stop it? (looks that it's related to AutomaticForegroundMode... I'm using Firebase services...)
 

Marcos Alves

Well-Known Member
Licensed User
Longtime User
Thanks @Erel . That was caused FirebaseMessaging... due some reason StopAutomaticForeground wasn't running for the service... then, I identified each piece of the subs when the service could be manually stopped and added StopService(Me)... worked! Follows my call to StopAutomaticForeground in FirebaseMessaging service... is it correct?

B4X:
Sub Service_Start (StartingIntent As Intent)
    
    If StartingIntent.IsInitialized And fm.HandleIntent(StartingIntent) Then Return
    Log("### Fireabase Start ")
    Sleep(0)
    Service.StopAutomaticForeground
    
End Sub
 
Upvote 0
Top