Samsunge companion app peer agent name change not working

hello, I solved it. anyways, I don’t have a clear idea what happened there. I tried a lot more time to solve this. I tried different ways of changing

res/xml/accessoryservices.xml

file on both the Android and my watch app side. finally, it worked but I don’t know what should be the correct thing have to do. I didn’t do too many name changes in naming parts. I used the original name and add my app name prefix. for example on my Android app side,

<application name="GumAccessoryProvider" >

when I use GumProvider, it didn’t work. but when I use GumAccessoryProvider, it worked. the original text is HelloAccessorryProvider and I just replaced Hello part and it worked.

And as well the id part in the service profile,

id="/gum/watch"

when I use

/gum/app/watch

it didn’t work. so seems it doesn’t get long id’s and I used /gum/watch it worked. the doc says it has a maximum of 30 characters there. (https://developer.samsung.com/galaxy-watch-tizen/creating-your-first-app/web-companion/use-sap.html)

And remember to do the changes in both res/xml/accessorry file changes in Android and your watch side.

I don’t know is this the correct approach. but this worked for me. Thanks!

1 Like