Hey folks!
Whenever my app is in background and i receive a push message (only data, without notification) my service spawns a single notification.
But for about 2 to 3 seconds there is another notification (obvisouly for the FirebaseMessaging service):
It stays until the Service.StopAutomaticForeground is called and disappears.
Can't really figure out what i'm missing here...
Related to:
Another similiar case here:
But removing the Sleep call has no effect.
Best regards
Daniel
Whenever my app is in background and i receive a push message (only data, without notification) my service spawns a single notification.
But for about 2 to 3 seconds there is another notification (obvisouly for the FirebaseMessaging service):
B4X:
Sub Service_Start(StartingIntent As Intent)
Firebase.HandleIntent(StartingIntent)
Sleep(0) ' Regardless of this sleep call
Service.StopAutomaticForeground ' 2nd notification disappears (2 or 3 seconds too late)
End Sub
It stays until the Service.StopAutomaticForeground is called and disappears.
Can't really figure out what i'm missing here...
Related to:
notification service - firebasemessaging create 2 service
one ofthem run at app was opened. i want to create one service only. please help
www.b4x.com
Another similiar case here:
Notification service and Service.StopAutomaticForeground : App icon popup
When the service is called from background to foreground, I can see the application Icon popping up into the upper notification area. It remains visible until the service code is completed ( until the Service.StopAutomaticForeground is called ) . This flashing icon can be annoying as it comes...
www.b4x.com
But removing the Sleep call has no effect.
Best regards
Daniel