-
Notifications
You must be signed in to change notification settings - Fork 132
Closed
Labels
best practiceNot a defect but something that should be improved anywayNot a defect but something that should be improved anyway
Description
Bug Report
Starting in Android 12 the system can delay the display of foreground service notifications by 10 seconds for certain foreground services.
If the foreground service has at least one of the following characteristics, the system shows the associated notification immediately after hte service starts:
- The service is associated with a notification that includes action buttons.
- The service has a
foregroundServiceTypeofmediaPlayback,mediaProjection, orphoneCall. - The service provides a use case related to phone calls, navigation, or media playback, as defined in the notification's category attribute.
- the service has opted out of the behavior change by passing
FOREGROUND_SERVICE_IMMEDIATEintosetForegroundServiceBehavior()when setting up the notificaiton.
OS & Version Information
- Android Version: SDK 31
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
best practiceNot a defect but something that should be improved anywayNot a defect but something that should be improved anyway