Use FOREGROUND_SERVICE_IMMEDIATE to immediately show the notification when our Push foreground service is started.
(We're not performing a potentially short operation where we start the service and is stops soon after. In those cases the default behavior of deferring the notification can avoid flashing a notification.)
Changing the behavior to FOREGROUND_SERVICE_IMMEDIATE provides a more timely feedback to the user when they enable Push via settings.
Use FOREGROUND_SERVICE_IMMEDIATE to immediately show the notification when our Push foreground service is started.
(We're not performing a potentially short operation where we start the service and is stops soon after. In those cases the default behavior of deferring the notification can avoid flashing a notification.)
Changing the behavior to
FOREGROUND_SERVICE_IMMEDIATE
provides a more timely feedback to the user when they enable Push via settings.