Languages

Menu
Sites
Language
SAAgent error on Samsung Gear 2 development

Hi, I'm programming an integrated app for samsung gear 2, but I have some issue. When i call the function  

webapis.sa.requestSAAgent(onsuccess, onerror);

I have an error on the console: "ONERROR: err [ServiceNotAvailableError] msg [Failed to register SAAgent.]".

I follow this tutorial for the development for the Gear side: https://www.youtube.com/watch?v=QDqhvbDEO-I

I've already put the privilege: 

<tizen:privilege name="http://developer.samsung.com/privilege/accessoryprotocol"/>

But I've no idea of how I can fix this error. Anyone con help me? Thanks

Responses

2 Replies
Kamil N

Make sure you have this line in you config.xml

  <tizen:metadata key="AccessoryServicesLocation" value="res/xml/accessoryservices.xml"/>

Regards

Kamil

AVSukhov

Hello,

You need configured accessory xml file as described in the docs

Hello Accessory Developer's Guide