I have just created a TileServiceProvider based on the sample given by google. In the google sample, registration is done using code in the androidManifest.xml file.
But if trying to add a Tile on the watch, it does not work. The sample app is not able to register the tile successfully either. Are we missing some information about registering tiles?
<service
android:name="com.example.wear.tiles.messaging.MessagingTileService"
android:label="@string/messaging_tile_label"
android:description="@string/tile_description"
android:icon="@drawable/ic_person"
android:permission="com.google.android.wearable.permission.BIND_TILE_PROVIDER">
<intent-filter>
<action android:name="androidx.wear.tiles.action.BIND_TILE_PROVIDER" />
</intent-filter>
<meta-data
android:name="androidx.wear.tiles.PREVIEW"
android:resource="@drawable/tile_messaging" />
</service>
Google have mentioned fixing this problem in the spring 2021 update for the tiles library. It's still currently not fixed.
Tiles are available for 3rd party developer, since August.
https://android-developers.googleblog.com/2021/08/sharing-tiles-with-your-smartwatch-users.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With