If an Android user hides an application's notifications from being shown, in Android 9+, either by entire application or by hiding a specific notification channel, can Services still be started using startForeground() with a valid Notification object?
I am starting a foreground service that may run indefinitely and is not dismissible. I would like to provide an action button in the notification to navigate the user to the Notifications settings and give the option to hide the persistent foreground notification without losing any functionality that is gained by having a foreground service.
Question: If a user disables a notification channel manually, and my application calls startForeground() with a valid Notification object and specifies the disabled channel, will the Service still start properly, and will it be considered a "foreground" service by the Android OS (even though the notification is not shown)?