Skip to Content
0
Apr 25, 2015 at 01:37 PM

Issue in Push notification

26 Views

Hi ,

I am new to HCPms and I am trying to develop the push notification with kapsel using WebIDE, I am not getting any response back from the following method.

var nTypes = sap.Push.notificationType.SOUNDS | sap.Push.notificationType.ALERT;

sap.Push.registerForNotificationTypes(

nTypes,

function(result) {

alert("result");

alert("Successfully registered: " + JSON.stringify(result));

},

function(errorInfo) {

alert("errorInfo");

alert("Error while registering. " + JSON.stringify(errorInfo));

},

function(notification) {

alert("in processNotification: " + JSON.stringify(notification));

},

"sender id");

No alert is been thrown, none of the three mentioned callback is been called , not sure whether the application is registered for push and when i try to check from rest client by post request to push url, I am getting 403 forbitten error, Kindly help.

Thank you

Rottwei