I am currently developing a small Tizen web application in an emulator since I do not have a device for developers.
For this application I need to use push messages. I requested access to the push service and this request has been approved. After that, I tried to register the application as described here: https://developer.tizen.org/documentation/articles/push-api
I added the following privilege and access source as indicated in the manual:
<tizen:privilege name="http://tizen.org/privilege/push"/>
<access origin="https://euwest.push.samsungosp.com:8088" subdomains="true"/>
After that, I added the following code, which is also taken from the same guide:
var service = new tizen.ApplicationControl("http://tizen.org/appcontrol/operation/push_test");
tizen.push.registerService(service, registerSuccessCallback, errorCallback);
function registerSuccessCallback(id)
{
console.log("Registration succeeded with id: " + id);
}
function errorCallback(response)
{
console.log( 'The following error occurred: ' + response.name);
}
However, when I run this code, I get an UnknownError file.
, , . , push-, , ?
, push , https://developer.tizen.org/dev-guide/2.2.0/org.tizen.native.appprogramming/html/guide/messaging/push_server_api.htm
: ? UnknownError Tizen?