Fixed
Status Update
Comments
xa...@google.com <xa...@google.com>
je...@google.com <je...@google.com>
am...@google.com <am...@google.com>
am...@google.com <am...@google.com>
an...@google.com <an...@google.com> #2
This was broken by 3bca759a5ff08352de831bb1e9b61b1ec2b3362d.
Fix (pending) is I2c2dc7b600603ee430fd0d91b23d52ea8aa29ca9.
Fix (pending) is I2c2dc7b600603ee430fd0d91b23d52ea8aa29ca9.
vi...@gmail.com <vi...@gmail.com> #3
Almost 2 months later and this is still broken
Description
Android requires us to specify these tags for foreground services:https://developer.android.com/about/versions/14/changes/fgs-types-required
If we use WorkManager, as suggested, then we have to specify what FGS type we are using:https://developer.android.com/develop/background-work/background-tasks/persistent/how-to/long-running#declare-foreground-service-types-manifest
If we use different FGS types in our application, either from different libraries we control, or from SDKs that we do not, then we want the final declaration to be merged.
Currently this isn't possible as if we have 2 defined
foregroundServiceType
for 1 service (say the work manager service), we get the following error:(project attached)
We would have to use
tools:replace
at the application level, and that does work, but then if the upstream projects or SDKs change, add, or remove aforegroundServiceType
, that will silently fail as we have no way of knowing it didn't merge.