Marcos Alves Well-Known Member Licensed User Longtime User Jul 8, 2018 #1 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...)
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...)
Erel B4X founder Staff member Licensed User Longtime User Jul 9, 2018 #2 See this tutorial: Automatic Foreground Mode Upvote 0
Marcos Alves Well-Known Member Licensed User Longtime User Jul 9, 2018 #3 Erel said: See this tutorial: Automatic Foreground Mode Click to expand... 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? Code: Copy 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
Erel said: See this tutorial: Automatic Foreground Mode Click to expand... 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? Code: Copy Sub Service_Start (StartingIntent As Intent) If StartingIntent.IsInitialized And fm.HandleIntent(StartingIntent) Then Return Log("### Fireabase Start ") Sleep(0) Service.StopAutomaticForeground End Sub