Hi! :wave: I am implementing the Dual-Service migr...
# compose-wear
m
Hi! 👋 I am implementing the Dual-Service migration strategy (keeping our legacy
TileService
alongside our new
GlanceWearWidgetService
) following the Tiles to Widgets migration guide (https://developer.android.com/training/wearables/widgets/migration#dual-service). Could you please confirm if the logical grouping setup is correct so that Wear OS 7+ automatically migrates the user’s existing carousel slot to the new widget without showing duplicates? _1. Widget provider XML (
res/xml/my_widget_info.xml
):_
Copy code
<wearwidget-provider
    xmlns:android="http://schemas.android.com/apk/res/android"
    label="@string/..."
    description="@string/text_existing_widget_description"
    group="com.your.package.tiles.YourExistingTileService">
    <!-- container definitions -->
/wearwidget-provider
2. `AndroidManifest.xml`: • We have two separate
service
declarations: one for
TileService
(
BIND_TILE_PROVIDER
) and one for
GlanceWearWidgetService
(
BIND_WIDGET_PROVIDER
). • In the
group
attribute of
wearwidget-provider
, we are passing the fully qualified class name of our existing
TileService
(
com.your.package.tiles.YourExistingTileService
). Questions: 1. Is setting
group="FullyQualifiedTileServiceClassName"
in
wearwidget-provider
the only configuration needed to link both services, or is any additional
meta-data
required on the legacy
TileService
in
AndroidManifest.xml
? 2. Does this linking work reliably if
applicationId
differs across build types (e.g.,
.debug
suffix), as long as
group
matches the actual class package/name declared in
android:name
? Thanks in advance!
a
👋 1. Yes, that should be the only configuration you need 2. Groups are based on the package name, so I believe that having the suffix will prevent the tile & widget being grouped together