tizen.push.registerService returns Unknown error

tizen.push.registerService returns Unknown error

BY 15 Apr 2015 Web Application Development

Hello

I added the privilege “http://tizen.org/privilege/push”.

and I got the appID, appSecret from push.tizen@samsung.com

and used below code.

——————————————————————————————–

 var service = new tizen.ApplicationControl(“http://tizen.org/appcontrol/operation/push_test”);

 // Defines the error callback.
 function errorCallback(response) {
   console.log( ‘The following error occurred: ‘ +  response.name);
 }

 // Defines the registration success callback
 function registerSuccessCallback(id) {
   console.log(“Registration succeeded with id: ” + id);
 }

 // Requests registration.
 tizen.push.registerService(service, registerSuccessCallback, errorCallback);

——————————————————————————————–

I have tested on Samsung Z1 device.

but the response from errorCallback is UnknownError.

Am i missing something? or..

 

Written by