Migrate Accessory Protocol Tizen Wearable Web 2.3 to 2.3.1
Migrate Accessory Protocol Tizen Wearable Web 2.3 to 2.3.1
BY 11 May 2016Web Application Development
Hi,
I’m trying to migrate an wearable app from 2.3 to 2.3.1 which have installed Samsung Accessory Protocol SDK but I’m having different errors, the first one was about permissions, I had this permission:
I made this change but when I tryied to run the app I got next error: Unknown Error Internal Error running the code to start accessory protocol in this line: webapis.sa.requestSAAgent(requestOnSuccess, requestOnError);
I’ve tried also start from scratch an app using the manual which Samsung offer to create a web companion app
function requestOnSuccess (agents) {
alert("requestOnSuccess");
var i = 0;
for (i; i < agents.length; i += 1) {
if (agents[i].role === "PROVIDER") {
SAAgent = agents[i];
break;
}
} /* Set listener for upcoming connection from Consumer */
SAAgent.setServiceConnectionListener(connectionListener);
}
function requestOnError (e) { alert("requestOnError"); }
/* Requests the SAAgent specified in the Accessory Service Profile */
if(CHANNELID ==""){
alert("requestSAAgent");
webapis.sa.requestSAAgent(requestOnSuccess, requestOnError);
}
}
catch(e){
alert(e);
}
Migrate Accessory Protocol Tizen Wearable Web 2.3 to 2.3.1
Hi,
I’m trying to migrate an wearable app from 2.3 to 2.3.1 which have installed Samsung Accessory Protocol SDK but I’m having different errors, the first one was about permissions, I had this permission:
And when I tried to install my app in my smart watch I got an error saying that I should use this one:
I made this change but when I tryied to run the app I got next error: Unknown Error Internal Error running the code to start accessory protocol in this line:
webapis.sa.requestSAAgent(requestOnSuccess, requestOnError);
I’ve tried also start from scratch an app using the manual which Samsung offer to create a web companion app
http://developer.samsung.com/gear/develop/getting-started/web-companion/setup-sdk
Here how to config your web companion app:
http://developer.samsung.com/gear/develop/getting-started/web-companion/use-sap
Here how to run Accessory protocol:
http://developer.samsung.com/gear/develop/getting-started/web-companion/interact-device
So far this is my code:
And this is my config.xml:
Everything was working well until I migrate from 2.3 to 2.3.1
Does anyone know what It’s going on? Any help would be really appreciated.
Cheers,
Miguel
BY
04 Nov 2024
Tizen Studio
BY
02 Apr 2024
Tizen Studio
BY
30 Oct 2023
Tizen Studio